经常使用的延时方法 void CheckFunc::Sleep(int msec) { QEventLoop loop; QTimer::singleShot(msec, &loop, SLOT(quit())); loop.exec(); }