终端,上下键修正

This commit is contained in:
hm
2020-12-16 18:39:22 +08:00
parent b249343f54
commit 0a2695a2dd
11 changed files with 32 additions and 13 deletions
+4
View File
@@ -52,6 +52,9 @@ void statusprocess::stop()
<< QThread::currentThread()
<< "running state:"
<< running_flag;
disconnect(thread, nullptr, nullptr, nullptr);
}
else
{
@@ -87,6 +90,7 @@ void statusprocess::process()//线程函数
}
}
//退出线程
disconnect(thread, nullptr, nullptr, nullptr);
thread->quit();
//thread->wait(200);//等待结束
thread->deleteLater();