[Qt-interest] QTreeWidget

Srdjan Todorovic todorovic.s at googlemail.com
Mon Mar 16 17:05:02 CET 2009


Hi,

2009/3/16 Sujan Dasmahapatra <sdh at lmglasfiber.com>:

> TreeWidget::fileNameUpdate(QString filename)
> {
>                 Item->setText(count,filename);
>                 count++;
> }

> But my file name is  coming only for the first time the geometry is
> loaded…….it’s not appending one by one.

Could be that TreeWidget::fileNameUpdate(QString filename) is only
being called once.
How do you use it?

> Can anyone tell me whats wrong this and what should I do ???

Try to determine how many times you call the above function.
You can put some qWarning() or qDebug() in there.

Good luck
Srdjan




More information about the Qt-interest-old mailing list