Unsolved aboutToQuit signal for QGuiApplication
-
Hi,
Do we have any mechanism to simulate QGuiApplication to emit "aboutToQuit" signal.
I want to do something when the application is about to quit.
Regards,
Raja -
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
https://doc.qt.io/qt-5/qcoreapplication.html#aboutToQuit