[Interest] QML: Qt.exit() does not trigger Window.onClose()

Jason H jhihn at gmx.com
Tue May 10 16:49:36 CEST 2016


So there were numerous errors in my email. it's quit(), not exit(). Window.close() exists, but is a function, not a signal handler.

I'm still looking for a way to hook into the graceful shutdown of the app - trigger all windows closed, the on close event, then exit.



> Sent: Tuesday, May 10, 2016 at 9:37 AM
> From: "Jason H" <jhihn at gmx.com>
> To: "interest at qt-project.org Interest" <interest at qt-project.org>
> Subject: [Interest] QML: Qt.exit() does not trigger Window.onClose()
>
> I'm using ApplicationWindow and when I call Qt.exit() it just exits. The onClose() event never fires. I think this is a bug as Qt.exit() should close all windows, then exit. Or there should be some GUI-enabled version like Qt.close() or something like that. 
> 
> Thoughts?
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 



More information about the Interest mailing list