KeyPressEvent singleTime ?
Solved
General and Desktop
-
Hi Qt Community :)
I'm looking for an answer i'm afraid it can be obvious .
After maintining the press on a certain key , everyone notices that the keyPressEvent needs a short amount of time before it goes on a loop .
I want my KeyPressEvent to either be singleTime (even when maintining the press) or to be looped instantly .
How do i do that ?
Thanks for your comprehension :)
-
Hi
Maybe you could look at
QKeyEvent::isAutoRepeat()
and if true ignore key.That way it will be "single time" .