QThread *thread = new QThread; ComputionBRG *computionBGR = new ComputionBRG; computionBGR->moveToThread(thread); //connect(computionBGR, SIGNAL(error(QString)), this, SLOT(errorString(QString))); connect(thread, SIGNAL(started()), computionBGR, SLOT(process())); connect(computionBGR, SIGNAL(finished()), thread, SLOT(quit())); connect(computionBGR, SIGNAL(finished()), computionBGR, SLOT(deleteLater())); connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); thread->start();我是利用moveto的方式实现多线程,但是运行程序的时候偶尔会出现错误,提示
QThread::Destroyed while thread is still running
QObject::killTimers: timers cannot be stopped from another thread
请教各位大牛了,我实在找不到原因了。。。