Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.4.0, 5.6.3, 5.9.4, 5.11.0 Beta 4
-
-
e0b5ff4ad583befbecbcbe462998e3ed80899531
Description
QWidget::closeEvent is called twice (it doesn't matter if the event is accepted or not).
See attached minimal application.
This regression was marked as fixed in QTBUG-39398, but for me it is not.
I have Qt 5.4 statically build on osx, the patch is there, but i still can reproduce the issue using the test app in QTBUG-39398.
i have fixed it for myself locally by not calling canQuit and calling QGuiApplication::exit(0) only if all windows did accept their close (and closed).
Attachments
Issue Links
- relates to
-
QTBUG-39398 Regression: closeEvent called twice
- Closed
-
QTBUG-33235 OSX: QQuickWindow doesn't get a closeEvent on Cmd+Q
- Closed
-
QTBUG-53365 Regression: After upgrading from 5.5.1 to 5.6.0 QCloseEvent::spontaneous doesn't work.
- Reported
-
QTCREATORBUG-18798 Closing Qt Creator from Dock menu looses some settings
- Closed
- resulted in
-
QTBUG-50854 [REG 5.5->5.6]: ASSERT in kernel\qwindow.cpp, line 396 triggered when reshowing a previously hidden QDialog with a QWidget if QWidget::winId() has been called
- Closed