Remove item from QToolBox



  • I created a QToolBox.
    I have in it: 2 tab and 2x2 items under the tabs.

    Edit:
    More precisely
    group_01
    item_01
    item_02
    group02
    item_03
    item_04

    I'd have liked to remove the an item (item_03) with mouseclick.
    But!
    The "toolBox->removeItem(id);" is not remove my item, because I can't query the item's id correctly.
    Currently my id is the tab id (I can query only this id :S), which is not good...

    How can I delete an item under a tab? From where can I retrieve the selected item's id?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.