Re-open ApplicationWindow when setQuitOnLastWindowClosed is false
Unsolved
General and Desktop
-
wrote on 22 Mar 2017, 08:57 last edited by A Former User
I found the setQuitOnLastWindowClosed method, if I set it to false my application is still alive when I close the main window as expected. How do I bring the window back?
Clicking on the Dock icon does nothing, I would want it to reopen my main window.
Using Qt 5.7, QtQuick 2.5, macOS Sierra.
-
Hi,
You can react on the QGuiApplication:: applicationStateChanged signal.
2/2