When you call this->setCentralWidget(NULL) does it call the destructor?
General and Desktop
2
Posts
2
Posters
746
Views
1
Watching
-
According to the "sources":http://code.woboq.org/qt5/qtbase/src/widgets/widgets/qmainwindow.cpp.html#_ZN11QMainWindow16setCentralWidgetEP7QWidget and "doc":http://qt-project.org/doc/qt-5/qmainwindow.html#setCentralWidget yes setCentralWidget deletes a previous widget and calls its destructor.