💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 概述 ## 示例 ### singleShot ``` int main(int argc, char *argv[]) { QApplication a(argc, argv); // 6s 后退出 QTimer::singleShot(60000, &a, &QApplication::quit); MainWindow w; w.show(); return a.exec(); } ``` ### simple ``` QTimer *timer = new QTimer(this); connect(timer, SIGNAL(timeout()), this, SLOT(update())); timer->start(1000); [TOC] ``` ### 等待所有事情处理完后触发 ``` QTimer *timer = new QTimer(this); connect(timer, SIGNAL(timeout()), this, SLOT(processOneThing())); timer->start(); ```