qt忙等与非忙等
摘要:
非忙等:void delay(int msec) { QTimeend = QTime::currentTime().addMSecs(msec); while( QTime::currentTime() < end) QCoreApplication::processEvents(QEventLoop::AllEvents, 100);}忙等:void delayBlock(int msec) { QTime start = QTime::currentTime(); QTime now; do{ now=QTime::currentTime(); }while (start.... 阅读全文
posted @ 2013-08-22 14:45 wps712 阅读(523) 评论(0) 推荐(0) 编辑