- 
    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
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.
- relates to
- 
                    QTBUG-118445 Native macOS MessageDialog doesn't reopen -         
- Closed
 
-         
- mentioned in
- 
                    Page Loading...