Qt學習筆記——QTimer計時器的基本使用

QTimer <-- 計時器 重複觸發 : QTimer *timer = new QTimer(this); //this 爲parent類, 表示當前窗口 connect(timer, SIGNAL(timeout()), this, SLOT()); // SLOT填入一個槽函數 timer->start(1000); // 1000毫秒, 等於 1 秒  以上意義爲每隔 1 秒觸發
相關文章
相關標籤/搜索