In my application I want that when a loop is being executed, each time the control transfers to the loop, each execution must be delayed by a particular time. How can I do t
As an update of @Live's answer, for Qt ≥ 5.2 there is no more need to subclass QThread, as now the sleep functions are public:
Static Public Members
QThread * currentThread()Qt::HANDLE currentThreadId()int idealThreadCount()void msleep(unsigned long msecs)void sleep(unsigned long secs)void usleep(unsigned long usecs)void yieldCurrentThread()
cf http://qt-project.org/doc/qt-5/qthread.html#static-public-members