2Qter豆
最佳答案可以用windows里面 Sleep();
你也可以用QTimer
我现在用的
static void mSleep(const qint64 &msecs)
{
QDateTime temTime = QDateTime::currentDateTime();
while(1)
{
QDateTime curTime = QDateTime::currentDateTime();
if(temTime.msecsTo(curTime) >= msecs)
break;
QCoreApplication::processEvents();
}
}
当然 我在这里是每次去取时间来比较,是基于系统时间不会修 ...
| ||
2013-11-28 11:16:39
显示全部楼层
| ||
2013-11-28 13:30:27
显示全部楼层
| |
2013-11-29 12:27:38
显示全部楼层
| |
2013-12-3 11:55:29
显示全部楼层
| |
2013-12-13 13:09:28
显示全部楼层
| |