Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Re-open ApplicationWindow when setQuitOnLastWindowClosed is false
dagheyman 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.
You can react on the QGuiApplication:: applicationStateChanged signal.