Will qtimers slots conflict happen?



  • If we have multiple timers in a single thread console application. For example one timer set interval is 3s, another time set 5 second and they maybe not started at the same time. In timerA slots, we change variable value or do some other things, before done all the things in the slots, it's right time to call slots of timerB . In this situation, timerA some operations can't be done before timerB slots start. The operations in timerA's slots is important to timerB.

    So how to avoid this situation happen? or there is other alternative method to solve this problem?


  • Lifetime Qt Champion

    Hi,

    So you have a slower timer depending on stuff done by a faster timer but both are not started at the same time, correct ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.