I'm writing a game, so when user hold key I'd like to repeat keyPressEvent immediately.keyPressEvent() is called whenever a key is pressed, and again when a key has been held down long enough for it to auto-repeat.
How can I do it?
I'm writing a game, so when user hold key I'd like to repeat keyPressEvent immediately.keyPressEvent() is called whenever a key is pressed, and again when a key has been held down long enough for it to auto-repeat.
How can I do it?
See if the static method QApplication::setKeyboardInputInterval helps.
Mithin
www.mithin.in
Bookmarks