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

QML Mouse onReleased Happening before onClicked(Solved)

$
0
0
Below is my code, what I want to do is change color of button while clicking and releasing button. But it seems that onReleased Happening before onClicked when I print to console. MouseArea{                      anchors.fill: parent                      onClicked:{                          console.log("onClicked")                            //Change button  color here                                                }                      onReleased: {                          console.log("onReleased")                        //Change button color here to another                        }                 } Console output qml: onReleased qml: onClicked

Viewing all articles
Browse latest Browse all 4972

Trending Articles