Results 1 to 2 of 2

Thread: How to Clear QTreeWidget

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default How to Clear QTreeWidget

    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
    Always Believe in Urself
    Merry

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to Clear QTreeWidget

    http://www.qtcentre.org/forum/f-qt-p...post49444.html

    Don't start a new thread on the same subject, please.
    J-P Nurmi

Similar Threads

  1. how to add icons to QTreeWidget?
    By wei243 in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2007, 08:34
  2. QTreeWidget drag/drop
    By s_a_white in forum Newbie
    Replies: 1
    Last Post: 10th February 2007, 22:04
  3. Removing items properly from qtreewidget item
    By Djony in forum Qt Programming
    Replies: 6
    Last Post: 21st November 2006, 12:20
  4. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32
  5. few questions related to QTreeWidget
    By prakash in forum Qt Programming
    Replies: 9
    Last Post: 10th March 2006, 07:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.