603 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...