sleep and wait
elmoterich last edited by
when I use the sleep() or wait() function the following commands are not executed. What can I do for working delay?
Gruzzyh2 last edited by
Do you have an example ?
What is the condition that breaks your sleep or your wait ?
sleep and wait are almost never a good choice and great indicators of reckless design. They are blocking functions which means nothing will run on that thread until they timeout.
If you want to schedule a function run after a specified time you can use QTimer::singleShot.