QMutex theLock;theLock.lock();QWaitCondition waitCondition;waitCondition.wait(&theLock, 500);theLock.unlock();