-
Lost events.
Hi,
I have a GUI application which uses a QTimer to refresh itself, making a number of database calls in the timer handling slot. This mostly works fine, except, that I'm occassionally loosing key events and mouse events.
Any ideas as to what might be happening ?
Thanks in advance,
Chris.
-
Re: Lost events.
Are the key events are lost completely or they are delivered after a short delay/jerk?
-
Re: Lost events.
Lost completely. For example typing 1234567890 into a text edit may result in 12890 appearing.
-
Re: Lost events.
Try delegating the database calls to a thread (remember you need to have a separate database connection for each thread).
-
Re: Lost events.
Yes, thats going to be my next step, though I'd have liked to have understood where my events were being lost.
-
Re: Lost events.
Probably in the windowing system.