qt 定时器,该怎么处理

2024-12-01 04:49:28
推荐回答(1个)
回答1:

QTimer *m_Timer;

m_Timer = new QTimer(this);
connect (m_Timer ,SIGNAL(timeout()),this,SLOT(UpdateTime()));

m_Timer ->start(100);