QObject::startTimer: Timers cannot be started from another thread
您可能会这么做:子类化QThread,在线程类中定义一个定时器,然后在run()方法中调用定时器的start()方法。checkProcess::checkProcess(){}checkProcess::~checkProcess(){}voidcheckProcess::checkFun(){qDebug()start(1000);this->exec();}看似十分自然,没有什么不妥,然而,