Qt wait

void HttpSql::wait(int ms ) { QElapsedTimer timer; timer.start(); do { QCoreApplication::processEvents(QEventLoop::AllEvents, ms); ::Sleep(10); } while (timer.elapsed() < ms); }

你可能感兴趣的:(Qt wait)