Nominate our 2022 Qt Champions!

How can I set the interval for mouse press detection ?



  • How can I set the interval for mouse press detection ?



  • You remember the time when the last click was preformed.
    When the next click is, you calculate now - last time. If difference is smaller than allowed time, you drop the event. Else, you executer your code.



  • My question is how can I set the time (for the all application) reqired to the QT recognaize a press event ?



  • Qt takes what it gets from the operating system. If you need a higher event rate you are therefore most probably out of luck, if you need a lower event rate you can do the event compression at least on your own.


Log in to reply