-
Long press event
hi all,
I jus want to know if there is a long press event available in Qt :)
The module im working on currently requires long press. I have seen long press in C7 for uninstalling
The click event and the press event gives the same result right?
alfah
-
Re: Long press event
Check QAbstractButton::autoRepeat
-
Re: Long press event
I checked that out, could you give me some ideas as to how to go about it.
alfah
-
Re: Long press event
If you provide more exact details about what you wish to archieve,then maybe I'll be able to help you
-
Re: Long press event
Sorry about not being clear. Yes, Im talking about key presses. I want to know to if there is a way to implement long key press. Ie if i click the button once it does an activity, if i press it twice it does another activity. These i have already done. Now I want to press and hold for some time to start yet another activity.
-
Re: Long press event
You can use a QTimer and use the 'press' and 'release' signals of the button to start and stop the timer. Once the timer reaches your time you can do whatever.