I have a main application window (QMainWindow descendant). The app creates another QMainWindow descendants with a parent pointed to the main window. The aim is to exit the application when main window is closed. Now, all opened children remain opened.

What have I missed?