My application creates a QApplication, then a QQuickView, and then moves through the various screens by changing the “url” property of the QQuickView’s rootObject().
The application is supposed to appear standalone (the user doesn’t need to know there’s a Mac running it) so it has no menu and no way for the user to exit.
However, on occasion there is a need to exit the application (and our users are allowed to do that), for which we normally just hit Command+Q. This does in fact exit the application, but also throws up a large panic screen about the program quitting unexpectedly.
I’ve tried making my own classes deriving from QApplication and QQuickView and implementing a variety of signals and virtual overrides, but can’t find anything that lets me jump in when a Command+Q gets hit and do some cleanup to avoid the panic screen.
Any suggestions?
Thanks,
Chris
↧