Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.1
-
None
-
Qt 5.3.1
Debian Linux 7 x32
-
0af228700e85167b9406193a38ea27584c6dc4d7
Description
The signal `onClosing` fires only when `Window` closed with x button.
Using `Window.close()` has no effect.
How to reproduce:
Window { id: someWindow onClosing: { console.log("OnClosing fired"); } Button { text: "Close" onClicked: { someWindow.close(); } } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-42426 Window.close() should not be callable in QML
- Closed
- relates to
-
QTBUG-31019 need a way to intercept closing of a Window in Qt Quick
- Closed
-
QTBUG-40857 ColorDialog: rejected signal doesn't get emitted when closing the window.
- Open
-
QTBUG-33235 OSX: QQuickWindow doesn't get a closeEvent on Cmd+Q
- Closed
For Gerrit Dashboard: QTBUG-40093 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
89382,9 | Make QWindow::close go through the QWindowSystemInterface | dev | qt/qtbase | Status: MERGED | +2 | 0 |
99178,2 | QQuickWindow autotest: verify that onClosing can block close() | 5.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
99179,4 | QtQuick.Window: add missing documentation for Window methods | 5.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |