终于解决了停止采集可能出错的问题！

while(!QThread::currentThread()->isInterruptionRequested()){}