[Interest] CPU load in busy indicator widget based on Q(Variant)Animation
thiago.macieira at intel.com
Wed Oct 16 17:09:42 CEST 2019
On Wednesday, 16 October 2019 06:33:55 PDT René J.V. Bertin wrote:
> What would be the proper way to implement something that behaves like a
> QTimer with delay 0 (= fire as soon as the event loop becomes available)
> but with an interval (= fire as soon as the event loop becomes available
> after at least X msec of pause)?
Just use a QTimer with the timeout that you want. The timeout you give is a
minimum value. If it gets overrun, it'll simply wake up late. The next time
out after that is adjusted: if one timer is late by over 100%, you'll still be
woken up only once.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel System Software Products
More information about the Interest