Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.3, 6.6.0
-
Pixel 4 API 33 Emulator (x86_64)
-
-
b00798df9 (dev), 18fc3862d (6.6), ec8564963 (tqtc/lts-6.5), 8dd687836 (dev)
-
2023wk44FOQtforAndroid, 2023wk46FOQtforAndroid, 2023wk48FOQtforAndroid
Description
Code
import QtQuick import QtQuick.Dialogs Window { width: 640 height: 480 visible: true MessageDialog { id: dlg title: "Error" text: "You can't close me" buttons: MessageDialog.Ok | MessageDialog.Cancel onAccepted: console.log("Yea") onRejected: console.log("Nay") } Component.onCompleted: dlg.open() }
Expected outcomes when clicking a button (Windows/Linux)
- The debug output prints "Yea" or "Nay", depending on which button was clicked
- The dialog disappears
Actual outcomes when clicking a button (Android)
- Nothing happens
Partial workaround
If we use import Qt.labs.platform instead of import QtQuick.Dialogs then the dialog does disappear. However, the onAccepted/onRejected handlers still don't seem to be run.
Attachments
Issue Links
- relates to
-
QTBUG-118445 Native macOS MessageDialog doesn't reopen
-
- Closed
-
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-118212 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
513128,21 | MessageDialog: make QQuickAbstractDialog::result return button pressed | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
514724,5 | Android/iOS: Handle accept/reject signals by QPlatformMessageDialog | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
515064,1 | Labs platform MessageDialog: Don't call done() in handleClick() | dev | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |
516100,9 | MessageDialog: Dont rely on accept or reject signal emissions from QPA | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
524063,2 | MessageDialog: Dont rely on accept or reject signal emissions from QPA | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
524151,2 | MessageDialog: Dont rely on accept or reject signal emissions from QPA | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |