Results 1 to 5 of 5

Thread: QTreeWidgetItem, selecting and removing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Posts
    28
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    18

    Default Re: QTreeWidgetItem, selecting and removing

    EHh now i have another problem...

    Qt Code:
    1. while (*it) {
    2. if ((*it)->text(0) =="test"){
    3. TWlist->setItemSelected(*it, true);
    4.  
    5. }
    6. ++it;
    7. }
    8. //item = TWlist->currentItem ();
    9. TWlist->removeItemWidget(TWlist->currentItem (),0);
    To copy to clipboard, switch view to plain text mode 

    And i dont know why removeItemWidget dosent work... Do u know any else method to remove item from QTreeWidget?

    Best Regards

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

    Default Re: QTreeWidgetItem, selecting and removing

    "Item widgets" are something laid on top of items. You can simply delete the item.
    J-P Nurmi

  3. #3
    Join Date
    Dec 2007
    Posts
    28
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    18

    Default Re: QTreeWidgetItem, selecting and removing

    Can You tell something more ? Because i dont understand what u mean ;p
    Sry and thx for help

    Best Regads

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
  •  
Qt is a trademark of The Qt Company.