View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#1
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 {
          anchors.fill: root
          propagateComposedEvents: true
          onPressAndHold: view.closeTab(index)
    }
}
I understand that perhaps a 'Timer' needs to be used, but I just cannot fathom how to do it, any ideas gratefully received!
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 2 Users Say Thank You to Markkyboy For This Useful Post: