Mouse PressAndHold
Unsolved
QML and Qt Quick
-
wrote on 18 Mar 2016, 13:14 last edited by
Is it possible to disable pressandhold so that no matter how long a mouse area is pressed, I get a clicked signal when released?
-
wrote on 19 Mar 2016, 13:53 last edited by istvan
In my understanding this is exact what onClicked does. From the online documentation:
"A click is defined as a press followed by a release, both inside the MouseArea (pressing, moving outside the MouseArea, and then moving back inside and releasing is also considered a click)."
MouseArea { anchors.fill: parent onClicked: console.log("released") onPressed: console.log("pressed") }
1/2