From 91115809937206dbfc27d2a732d3e70242d97090 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Wed, 25 May 2022 21:40:29 +0800 Subject: [PATCH] no message --- client/webrtc_capture/src/mainwindow.cpp | 8 +++++++- client/webrtc_capture/src/mainwindow.ui | 16 +--------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/client/webrtc_capture/src/mainwindow.cpp b/client/webrtc_capture/src/mainwindow.cpp index d4935fb..ee1f4f5 100644 --- a/client/webrtc_capture/src/mainwindow.cpp +++ b/client/webrtc_capture/src/mainwindow.cpp @@ -12,7 +12,7 @@ #include #include #include - +#include "Qss.h" class ASyncDetectAndRenderThread :public QSSASyncProcess{ public: @@ -270,6 +270,12 @@ void MainWindow::on_pushButton_3_clicked() void MainWindow::on_pushButton_4_clicked() { if(gdetect == nullptr){ + if((ui->lineEdit->text().toStdString() == "") + || + (ui->lineEdit_2->text().toStdString() == "")){ + QssMessageBox::warn("",nullptr,"请输入模型",QMessageBox::Ok); + + } gdetect = new ASyncDetectAndRenderThread(this,mDetectResut,ui->openGLWidget->RenderWidth(), ui->openGLWidget->RenderHeight(), ui->lineEdit->text().toStdString(), diff --git a/client/webrtc_capture/src/mainwindow.ui b/client/webrtc_capture/src/mainwindow.ui index 86b6706..4d1bfc9 100644 --- a/client/webrtc_capture/src/mainwindow.ui +++ b/client/webrtc_capture/src/mainwindow.ui @@ -22,7 +22,7 @@ - + @@ -56,20 +56,6 @@ - - - - 拍照 - - - - - - - 检测 - - -