[Qt-interest] QTreeWidget
Sujan Dasmahapatra
sdh at lmglasfiber.com
Mon Mar 16 14:51:17 CET 2009
Dear Friends
I got treeWidget class for updating my geometries when it's loaded. I
am doing something like this
In the class
Class TreeWidget : public QTreeWidget
{
Q_OBJECT
private:
int count;
QTreeWidgetItem *item;
public:
TreeWidget()
public:
Void fileNameUpdate(Qstring filename);
};
TreeWidget::TreeWidget()
{
count = 0;
item = new QTreeWidgetItem(this);
}
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.
Can anyone tell me whats wrong this and what should I do ???
Kind regards,
LM Glasfiber R&D (India) Pvt. Ltd.
Sujan Dasmahapatra
Project Engineer - CFD
Telephone: +91 80 66470248
Mobile:
E-mail: sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>
--------------------------------------------------------------
This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose or
store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090316/0c5cba0b/attachment.html
More information about the Qt-interest-old
mailing list