266 views
in GUI Development by
I have a timer with timeout of 50 ms. When the timeout occur, the corresponding slot is executed. Suppose the slot took more than 50ms to finish, does the timer will  invoke the slot once again or wait for the previous slot execution to finish?

I hope the question is clear.

1 Answer

+1 vote
by
 
Best answer

Hello,

the slot method will not be invoked again while it is processed. All timers are processed in the context of the main loop - see section processing timers. If the processing of your slot method takes more than 50ms, then the slot method will be invoked next time in the main loop again.

For more details about the timer interval see also Specify the timer interval and the initial delay.

I hope this answers your question...

Best regards,
Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...