From 4eb953d17892d74b5f7ac88641e0c4ca81b5a0ce Mon Sep 17 00:00:00 2001 From: "Mr.V" Date: Sun, 17 Mar 2024 19:11:34 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=A7=A3=E5=86=B3=E5=9B=A0=E5=88=87?= =?UTF-8?q?=E5=88=86=E6=9D=A5=E8=BD=A6=E7=8A=B6=E6=80=81=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=88=87=E5=88=86=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/qt_source/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qt_source/mainwindow.cpp b/src/qt_source/mainwindow.cpp index 473e0ee..bc4bb1e 100644 --- a/src/qt_source/mainwindow.cpp +++ b/src/qt_source/mainwindow.cpp @@ -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);