Qt问题:QObject::startTimer: Timers can only be used with threads started with QThread


将普通控制台main函数改为QApplication的消息循环:

 参考:https://blog.csdn.net/wo_Niu123/article/details/104942749

相关