Disconnect the lastWindowClosed() signal in the application object from its quit() slot.
Disconnect the lastWindowClosed() signal in the application object from its quit() slot.
Thanks for the reply.
Before the tcontrol *control = new tcontrol(); line, I use this a.setQuitOnLastWindowClosed(false); as I check on documentation:
but the result is the same.void QApplication::lastWindowClosed () [signal]
...
This feature can be turned off by setting quitOnLastWindowClosed to false.
Bookmarks