There is no guarantee that slots in two timers will be called up with specific orders. This is due to the fact that you run them at different times, and QTimer also has millisecond accuracy at best by setting this:
timer.setTimerType(Qt::PreciseTimer);
The default value is Qt::CoarseTimer , which causes accuracy within 5% of the required interval.
About your case, if you want to call slot2 and slot1 so that you can call them in the slot connected to the timer with an interval of 10:
void myClass::onTriggered() { if(count % 2==0) slot2(); slot1(); count++; }
source share