[Qt-interest] Cursor is not moving through QTreeWidgetItem list in QTreeWidget

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Fri Dec 11 07:53:03 CET 2009


Friends
I have TreeWdiget class Derived from QTreeWidget now I am adding some item
and some child items also.I am not able to move through the items in my list
smoothly. Its getting stuck on an item and my cursor is not moving in the
treeWidget.Its not crashing but simply not moving through them.

What could be the reason for this . Any suggestions

class TreeWidget : public QTreeWidget
{
Q_OBJECT
public:
TreeWidget() { }
~TreeWidget() { }
QList <QTreeWdigetItem *>item;
};

 QTreeWidgetItem *partname = new QTreeWidgetItem(treeWidgetMesh->item[i]);
 QString mod = " grid.x2d " +
QString::number(treeWidgetMesh->currentItem()->childCount());
 partname->setText(0, mod);
 treeWidgetMesh->item[0]->addChild(partname);
 treeWidgetMesh->setCurrentItem(partname);
My items are coming properly in the treeWidget but I am not able select any
from the list, my cursor is getting stuck on the currentItem.

-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Software programmer
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091211/dc018219/attachment.html 


More information about the Qt-interest-old mailing list