is dtor of MainWindow called? looks like no.
is dtor of MainWindow called? looks like no.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Why would MainWindow's dtor have anything to do with it ?
... I see it now .....
in the ctor, it needed:
Qt Code:
setAttribute(Qt::WA_DeleteOnClose);To copy to clipboard, switch view to plain text mode
Thanks for the kick !
because, if you remeber, when you pass a parent into ctor of objects which subclassed from QObject Qt will delete all children by itself when a parent's dtor is being called. but if you don't pass a parent in ctor of objects then you have to delete these objectcs by yourself.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
vieraci (15th May 2009)
Bookmarks