PDA

View Full Version : keyPressEvent - auto-repeat immediately



Macok
13th March 2009, 14:59
keyPressEvent() is called whenever a key is pressed, and again when a key has been held down long enough for it to auto-repeat.I'm writing a game, so when user hold key I'd like to repeat keyPressEvent immediately.
How can I do it?

munna
16th March 2009, 05:31
See if the static method QApplication::setKeyboardInputInterval helps.