[Qt-interest] QObject destructor

Yifei Li yifli at mtu.edu
Tue May 4 21:43:22 CEST 2010


Hi folks,

I'm wondering if  QObject destructor will delete the object's children.  

For example, I have my own class MyWidget,  and in its constructor widgets are created on the stack  with parent being the MyWidget object. So do I need to delete all the widgets created on the stack in MyWidget's destructor?


Thanks

Yifei



More information about the Qt-interest-old mailing list