Qt 6.11 is out! See what's new in the release
blog
How to stop a Release action immediately after longPress for a Button
-
Hi,
I have implemented longpress button action. But, after a longpress - Release action is getting called and its displaying the unwanted text field on display. How can we stop after an immediate longpress. Here, I am attaching my sample code. Is their is any way to stop an action in QML
Connections { target: keypad.item onButtonAction: { if(action == ButtonActions.LONG_PRESS && maintxt.text === "0") { textInput += subtxt.text; } if (action == ButtonActions.RELEASED) { textInput += maintxt.text; } } }Thanks,