Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
aboutToQuit signal for QGuiApplication
inforathinam last edited by
Do we have any mechanism to simulate QGuiApplication to emit "aboutToQuit" signal.
I want to do something when the application is about to quit.
Just connect to aboutToQuit() signal. What do you mean by "simulate"? You can trigger that signal by simply clicking "x" on your main window.
@inforathinam QGuiApplication has this signal because it is derived from QCoreApplication