How to avoid/cancel the signal pressAndHold?
Unsolved
General and Desktop
-
On my device (linux, Qt5.5) I use a touch screen. After some clicks the MouseArea gets the signal pressAndHold. But the touch screen is not pressed anymore. How can I avoid this? Or how can I release a reset of the event?
MouseArea { id: mouseArea height: parent.height width: parent.width preventStealing: true onCanceled: { console.log("MouseArea::onCanceled"); } onClicked: { console.log("MouseArea::onClicked"); } onDoubleClicked: { console.log("MouseArea::onDoubleClicked"); mouse.accepted = false; } onEntered: { console.log("MouseArea::onEntered"); } onExited: { console.log("MouseArea::onExited"); } onPositionChanged: { console.log("MouseArea::onPositionChanged"); } onPressAndHold: { console.log("MouseArea::onPressAndHold"); } onPressed: { console.log("MouseArea::onPressed"); mouse.accepted = true; } onReleased: { console.log("MouseArea::onReleased"); } }
Regards,
Thomas