void Utils::qSleep(unsigned long msec) { QWaitCondition w; QMutex q; q.lock(); w.wait(&q, msec); return; }