Qt编程技巧 延时 Posted on 2009-10-26 In 技术笔记 延时可以使用这个函数 1void QTimer::singleShot ( int msec, QObject * receiver, const char * member ) [static] Example: 123456789#include <QApplication>#include <QTimer>int main(int argc, char *argv[]){ QApplication app(argc, argv); QTimer::singleShot(600000, &app, SLOT(quit())); ... return app.exec();}