QTimer singleShot function



  • Hi,
    I have doubt regarding the working of QTimer singleshot function. In my code the QTimer::SingleShot function is used twice, calling the same function on timeout. The doubt i have is, if the timeout for both QTimer::SingleShot functions happen at the same time, will the slot be called at the same time or it will be called twice but one after another.



  • If you are not using multiple threads all code is run serial and your slot will be invoked twice, one after another.



  • thank you lukas, that cleared it!


Log in to reply
 

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