How to achieve long mouse press event or press and hold mouse event in Qt 4.8.5?



  • How does a QPushButton recognize press and hold mouse press event?
    is there any way to achieve it using Qt 4.8.5?


  • Moderators

    @Sudo007
    i think you can use QTapAndHoldGesture. In case it doesn't work with mouse events you can create your custom gesture. Shouldn't be that hard.
    Read here how to handle and create custom gestures correctly.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.