Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.6.0 Beta
-
None
-
All
Description
I was using the QCloseEvent::spontaneous to determine if the closeEvent was fired but clicking the 'X' in the window frame of the app or in response to QApplication::closeAllWindows();. It used to return true when 'X' was click and false when QApplication::closeAllWindows(); was executed. Now it returns true in both cases which doesn't agree with the documentation.
$./qtbug53365 <- closeAllWindows() programmatically via button "5.6.1 xcb" QWidgetWindow(0xe29600, name = "WidgetClassWindow") QCloseEvent(Close, 0x7ffc54edc880) spont= true Widget(0x7ffc54ede1d0) QCloseEvent(Close, 0x7ffc54edc370) spont= true $ ./qtbug53365 <--Window border close "5.6.1 xcb" QWidgetWindow(0x255d510, name = "WidgetClassWindow") QCloseEvent(Close, 0x7ffc67416950) spont= true Widget(0x7ffc67416dc0) QCloseEvent(Close, 0x7ffc67416440) spont= true
$./qtbug53365 <- closeAllWindows() programmatically via button "5.5.1 xcb" Widget(0x7fff297736b0) QCloseEvent(Close, 0x7fff29772740) spont= false $ ./qtbug53365 <--Window border close "5.5.1 xcb" QWidgetWindow(0x209be20, name = "WidgetClassWindow") QCloseEvent(Close, 0x7ffd798e4610) spont= true Widget(0x7ffd798e4970) QCloseEvent(Close, 0x7ffd798e4330) spont= true
Attachments
Issue Links
- relates to
-
QTBUG-43344 macOS: Regression: closeEvent called twice (still not fixed)
- Closed
-
QTBUG-53286 Consistent QWindow close event behavior
- Open