Is it correct to call saveState method in destructor of QMainWindow? Or should I do it in QMainWindow::closeEvent (as in documentation)?
I have problems in some project with saving state from destructor. It seems to me, that in destructor of QMainWindow state maybe already incorrect, and then restoring from broken state gives strange results. Moving of saving state from destructor to closeEvent method fixes problem.