延时可以使用这个函数 void QTimer::singleShot ( int msec, QObject * receiver, const char * member ) [static] Example: #include <QApplication> #include <QTimer> int main(int argc, char *argv[]) { QApplication app(argc, argv); QTimer::singleShot(600000, &app, SLOT(quit())); ... return app.exec(); }