So basicly I never have to delete any component that is displayed on another widget?
Will there be problems if I do delete something that is a child of a widget?
QObjects delete their children automatically and inform their parent when they get deleted. In addition, all relevant signal slot connections are also cleaned up. You are free to delete QObjects when you feel so with the exception that the sender of a signal must not be deleted in a slot.
Further reading: Object Trees and Object Ownership, notice QObject::dumpObjectTree() which is handy for examining object trees.
J-P Nurmi
Thanks for the info!
I assume the QSocket and such need to be deleted though
Who needs Java garbage-collector anyway![]()
Bookmarks