1、解决因切分来车状态信息时,切分异常的问题

This commit is contained in:
Mr.V 2024-03-17 19:11:34 +08:00
parent c83ec8cf6b
commit 4eb953d178
1 changed files with 5 additions and 1 deletions

View File

@ -111,7 +111,7 @@ MainWindow::MainWindow(QWidget *parent)
});
// 接收子线程的消息提示
connect(this->tcpClient, &TcpClient::sendTcpInfoSignals, this, [=](QString info){
connect(this->tcpClient, &TcpClient::sendTcpInfoSignals, this, [=](const QString& info){
this->logInfo(info);
this->statusInfo->setText(info);
if (info == "链接服务端超时"
@ -123,6 +123,10 @@ MainWindow::MainWindow(QWidget *parent)
this->videoHasTrain = false;
}
});
// 接收子线程的TCP消息内容展示
connect(this->tcpClient, &TcpClient::getTcpInfoSignals, this, [=](const QString& info){
this->logInfo(info);
});
emit connect_socket(this->socketServerConfig_.server_ip, this->socketServerConfig_.server_port);