Not set the main window to the QApplication. If main window of application is closed then main event loop finished and application exits. Now event loop finished when all toplevel windows closed.
Not set the main window to the QApplication. If main window of application is closed then main event loop finished and application exits. Now event loop finished when all toplevel windows closed.

FedoraScientific/salome-gui,FedoraScientific/salome-gui,FedoraScientific/salome-gui,FedoraScientific/salome-gui,FedoraScientific/salome-gui,FedoraScientific/salome-gui