Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.11.2
-
None
Description
See attached self contained example.
Subclassing QQuickView::event and returning false on an event of type QEvent::Close doesn't prevent the application to quit.
This mechanism works on Linux and Windows but not on macOS (I'm using 10.13.4)
So basically I have no way to implement a "Save before exit" step.
[EDIT] after comments (and adding event->ignore()), the issue is now only related to Cmd+Q or "Quit" from menu. I haven't found a way on macOS to prevent the application to quit
Attachments
Issue Links
- relates to
-
QTBUG-33235 OSX: QQuickWindow doesn't get a closeEvent on Cmd+Q
- Closed
For Gerrit Dashboard: QTBUG-72013 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
277640,13 | Deliver Quit event when calling QCoreApplication::quit() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
277851,1 | Teach QCoreApplication::quit() to involve platform in termination | 5.14 | qt/qtbase | Status: ABANDONED | 0 | 0 |
312898,3 | Plumb application quit through platform plugin | dev | qt/qtbase | Status: MERGED | +2 | 0 |