Yes but sleep IS per thread.
And makes no sense to make a GUI thread (the main thread) sleep.
I don't know however what happens if you want to use sleep in a console application with Qt4...
But this thread might prove interesting for you:
http://lists.trolltech.com/qt-intere...ad00380-0.html
from that thread:
Qt Code:
#include <qthread.h> { public: static void sleep(unsigned long secs) { } static void msleep(unsigned long msecs) { } static void usleep(unsigned long usecs) { } };To copy to clipboard, switch view to plain text mode
Bookmarks