Hi,
I am adding widgets to the items of a QTreeWidget. The documentation of setItemWidget says:
The tree takes ownership of the widget.
Does this means that when the QTreeWidget gets destroyed it destroy the item widget?
Thanks,
Carlos.
Hi,
I am adding widgets to the items of a QTreeWidget. The documentation of setItemWidget says:
The tree takes ownership of the widget.
Does this means that when the QTreeWidget gets destroyed it destroy the item widget?
Thanks,
Carlos.
qlands (30th May 2011)
Right. Whenever an object "takes ownership" of another object, it takes over responsibility for deleting the object when appropriate.
Bookmarks