//非阻塞式延时ms void DCSsimulate::Delay_MSec(unsigned int msec) { //DEBUG_INFO("Delay_MSec_Thread ID: %p", QThread::currentThreadId()); QTime _Timer = QTime::currentTime().addMSecs(msec); while(QTime::currentTime() < _Timer ) { QCoreApplication::processEvents(QEventLoop::AllEvents, 100); } }