Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm using Qt GUI and a timer in a slot to call spinOnce() periodically. I would like to ask at which rate should I call this function spinOnce()?

At a minimum at the lowest rate you expect messages to come in / events to be scheduled -- if you care about delays.

Ideally at a much higher rate, as delaying processing the event queue (ie: calling spinOnce()) will introduce artificial delays in your event processing.