How to give a delay in loop execution using Qt
EDIT (removed wrong solution). EDIT (to add this other option): Another way to use it would be subclass QThread since it has protected *sleep methods. QThread::usleep(unsigned long microseconds); QThread::msleep(unsigned long milliseconds); QThread::sleep(unsigned long second); Here’s the code to create your own *sleep method. #include <QThread> class Sleeper : public QThread { public: static void usleep(unsigned … Read more