Decrease onPressAndHold duration
Hi all,
as per the title of this post, I'm wanting to decrease the duration of 'onPressAndHold', I've found a few suggestions on StackExchange but have not been able to make it work for my case. Rather than posting any and all attempts I've made, I'd like to make it work with what little I have originally coded so far, but the duration is a tad too long; how do I reduce the duration?...... Code:
MouseArea { |
Re: Decrease onPressAndHold duration
onPressed: timer.start()
onReleased: timer.stop() onCancel: timer.stop() timer.onTriggered: view.closeTab(index) |
Re: Decrease onPressAndHold duration
Quote:
Eventually........ Code:
MouseArea { Thanks again, coderus Regards, |
Re: Decrease onPressAndHold duration
add timer stop to onCanceled and onExited
|
All times are GMT. The time now is 22:55. |
vBulletin® Version 3.8.8