Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.14.2
-
None
Description
import QtQuick 2.12 import QtQuick.Dialogs 1.3 import QtQuick.Controls 1.2 MessageDialog { id: root icon: StandardIcon.Information title: qsTr("Delete content") text: qsTr("<p>You are about to delete file.</p>" + "<p>Tap 'OK' when you are ready to proceed.</p>") standardButtons: StandardButton.Cancel | StandardButton.Ok Component.onCompleted: { console.log("test onCompleted") open() } onAccepted: {console.log("test onAccepted")} onRejected: {console.log("test onRejected")} }
qml: test onCompleted qml: test onAccepted qml: test onAccepted qml: test onCompleted qml: test onRejected qml: test onRejected
Simple code, onAccepted and onRejected fires twice, on macOS.
I have tried this code on iOs, no problem.
Attachments
Issue Links
- is duplicated by
-
QTBUG-94126 If inherit QApplication, the MessageDialog accepted signal is emitted twice.
-
- Closed
-