The Following 2 Users Say Thank You to Markkyboy For This Useful Post: | ||
![]() |
2018-07-20
, 09:25
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#2
|
![]() |
2018-07-20
, 14:20
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, España
|
#3
|
onPressed: timer.start()
onReleased: timer.stop()
onCancel: timer.stop()
timer.onTriggered: view.closeTab(index)
MouseArea { anchors.fill: root propagateComposedEvents: true onPressed: { timer.start(); } onReleased: { timer.stop(); } Timer { id: timer interval: 500 onTriggered: { view.closeTab(index) } } }
The Following 2 Users Say Thank You to Markkyboy For This Useful Post: | ||
![]() |
2018-07-20
, 16:51
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#4
|
The Following 3 Users Say Thank You to coderus For This Useful Post: | ||
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?......
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..