Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

MessageDialog is triggering signals twice

$
0
0
I have a problem using MessageDialog. The following code:   import QtQuick 2.2 import QtQuick.Dialogs 1.1   .....   MessageDialog {         id: id_dialogDelete         title: qsTr("Warning");         icon: StandardIcon.Warning         text: qsTr("Are you sure?")         standardButtons: StandardButton.Yes | StandardButton.No        Component.onCompleted: visible = true           onYes: {             console.log("DELETE")         }     } Triggers yes() signal two times and the result is: DELETE DELETE What could be the problem?

Viewing all articles
Browse latest Browse all 4972

Trending Articles