[Qt-interest] Key events not responding immediately

Patric userqt at gmail.com
Mon Aug 24 16:54:18 CEST 2009


Hello, 
I have a strange problem here. 
I'm experiencing a delay with the key press events... 

I have a QGraphicsView and 3 items ( classes that inherit QGraphicsPixmapItem ). 

It's a game actually. A simple board, characters on it, turn based. 
So when I add only one character to the board ( scene ), everything is fine and there is no such delay in pressing keys (and when key is pressed the character should move). 

But when I add more than one objects in there, start new game (and my program places the three objects randomly on the field) I have to wait approximately 5 seconds before pressing a key. 
Because before that my game just not respond to my key press events.. 

Any ideas where might be the problem ?

Regards, 
Patric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090824/832223b8/attachment.html 


More information about the Qt-interest-old mailing list