I\'ve created a Qt application that acts mostly as a daemon, but occasionally shows a dialog.
Now, I know the default behavior is to close the application when the
You can set the QApplication::quitOnLastWindowClosed property to false:
false
... QApplication qApp; qApp.setQuitOnLastWindowClosed(false); ...