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 @@ - - - - 拍照 - - - - - - - 检测 - - -