PDA

View Full Version : How to Clear QTreeWidget



merry
28th September 2007, 06:54
Hi all

Working on Qt4.1

I have a LinkList of Items which I m showing in QTreeWidget.

What I anm doing is this when I double click a item in the treeWidget I m clearing a tree and showing the child of that QTreeWidgetItem which are in Linked List.

But as QtreeWidget->clear() takes some time to clear a treeWidget if I emit the signal to show its child then it get crashed.

So I want that once the treeWidget is cleared then i emit the signal to add new item on the same tree.

and the application crashes only when i am clearing the treeWidget.

What can i do , pls help

Regards

jpn
28th September 2007, 07:52
http://www.qtcentre.org/forum/f-qt-programming-2/t-qtreewidget-clear-9263-post49444.html

Don't start a new thread on the same subject, please.