By removing all the items except the first
As the friendly docs say,I tried using
void QToolBox::removeItem ( int index )
but it is not deleting the removed item....
If you want the object deleted, then delete it yourself.void QToolBox::removeItem ( int index )
Removes the item at position index from the toolbox. Note that the widget is not deleted.
Bookmarks