[Solved]closeEvent() is not working when application is closing.
-
I have a sub class from QmlApplicationViewer in which i override the closeEvent() function, but it is not called when i press the cross on my window. Are there any other ways to catch my application is closing?
Also tried Component.onDestroying on my root element in QML file, but in this case i think some of children of this item are deleted till that moment. -
-
Depending on what you're trying to do, the "QCoreApplication::aboutToQuit":http://doc.trolltech.com/4.7/qcoreapplication.html#aboutToQuit signal may be helpful.
EDIT: It's good to use the right class name.