PDA

View Full Version : Qtimer object blocking an application.



RicardoSousa
12th June 2012, 09:40
Hello,

Im using a Qtimer object in order to create a repetitive event in a application. However this object is always running and blocks the application.
Could you help me?

Many thanks

Ricardo Sousa

Note: the Qtimer object is not in a different thread, but I suppose that it should work in this way.

ChrisW67
12th June 2012, 10:10
Could you help me?
Sure. The timer itself cannot block the application, only the processing it triggers. So, don't run the timer on a period shorter than the code it runs in the attached slot(s) connected to the timeout() signal.