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
↧