프로그래밍/Qt
QTimer
Dev-Drake
2019. 6. 11. 14:14
반응형
#include
// .h
QTimer *timer;
public slots:
void update();
// .cpp
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
timer->start(1000);
// 함수
void update()
{
// 반복 작업
}
반응형