Qt线程下定时做某事

直接在run函数中

while(!m_stop)
{
    sleep(2);
}

 

为啥要用QTimer呢?搞不懂

posted @ 2022-04-19 09:49  远方是什么样子  阅读(28)  评论(0编辑  收藏  举报