增加线程运行方式
This commit is contained in:
@@ -195,7 +195,13 @@ void ToolsUI::btnClicked()
|
||||
|
||||
void ToolsUI::recieveDataSlot(const int &id, const QByteArray &data)
|
||||
{
|
||||
//qDebug() << "tools thread:" << QThread::currentThreadId();
|
||||
|
||||
Parse *parse = new Parse;
|
||||
|
||||
connect(this,&ToolsUI::parseData,
|
||||
parse,&Parse::parseData);
|
||||
|
||||
if(id == 0)
|
||||
{
|
||||
connect(parse,&Parse::INS_Info,
|
||||
@@ -261,6 +267,7 @@ void ToolsUI::recieveDataSlot(const int &id, const QByteArray &data)
|
||||
|
||||
QThreadPool::globalInstance()->start(parse);
|
||||
|
||||
//emit parseData(id,data);
|
||||
parse->parseData(id, data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user