Results 1 to 2 of 2

Thread: keyPressEvent - auto-repeat immediately

  1. #1
    Join Date
    Jan 2009
    Posts
    51
    Thanks
    28
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default keyPressEvent - auto-repeat 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.
    I'm writing a game, so when user hold key I'd like to repeat keyPressEvent immediately.
    How can I do it?

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: keyPressEvent - auto-repeat immediately

    See if the static method QApplication::setKeyboardInputInterval helps.

Similar Threads

  1. Keyboard auto repeat
    By akiross in forum Qt Programming
    Replies: 7
    Last Post: 4th March 2007, 16:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.