Results 1 to 3 of 3

Thread: Unable to remove QTreeWidgetItem row from Qtreewidget

  1. #1
    Join Date
    Mar 2010
    Posts
    63
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Unable to remove QTreeWidgetItem row from Qtreewidget

    I am unable to delete QTreeWidgetItem as row from QTreewidget

    QTreeWidgetItem *item=imo_operator_map.value(QString(arrOpDetails. at(0)).toLower());
    if(item)
    imo_treewidget->indexOfTopLevelItem(item)

    i cross check item variable contains a vaild value.
    Please help me to delete QTreeWidgetItem from Qtreewidget.
    I dontwant to clear tree

  2. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Unable to remove QTreeWidgetItem row from Qtreewidget

    hi,
    did u try
    void QTreeWidgetItem::removeChild ( QTreeWidgetItem * child )
    Removes the given item indicated by child. The removed item will not be deleted.
    hope it helps
    Bala

  3. #3
    Join Date
    Mar 2010
    Posts
    63
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Unable to remove QTreeWidgetItem row from Qtreewidget

    Thanks for reply.But i need to remove from QTreewidget not from QTreewidgetItem

Similar Threads

  1. Customizing QTreeWidget and QTreeWidgetItem
    By mots_g in forum Qt Programming
    Replies: 0
    Last Post: 18th August 2010, 06:53
  2. Cursor is not moving through QTreeWidgetItem list in QTreeWidget
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 0
    Last Post: 11th December 2009, 06:52
  3. Replies: 1
    Last Post: 23rd October 2009, 00:37
  4. Replies: 2
    Last Post: 24th May 2009, 10:27
  5. PyQt remove the current QTreeWidgetItem
    By koenux in forum Qt Programming
    Replies: 2
    Last Post: 10th January 2009, 23:08

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.