no message
parent
c54519de29
commit
9111580993
|
@ -12,7 +12,7 @@
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
|
#include "Qss.h"
|
||||||
|
|
||||||
class ASyncDetectAndRenderThread :public QSSASyncProcess{
|
class ASyncDetectAndRenderThread :public QSSASyncProcess{
|
||||||
public:
|
public:
|
||||||
|
@ -270,6 +270,12 @@ void MainWindow::on_pushButton_3_clicked()
|
||||||
void MainWindow::on_pushButton_4_clicked()
|
void MainWindow::on_pushButton_4_clicked()
|
||||||
{
|
{
|
||||||
if(gdetect == nullptr){
|
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(),
|
gdetect = new ASyncDetectAndRenderThread(this,mDetectResut,ui->openGLWidget->RenderWidth(),
|
||||||
ui->openGLWidget->RenderHeight(),
|
ui->openGLWidget->RenderHeight(),
|
||||||
ui->lineEdit->text().toStdString(),
|
ui->lineEdit->text().toStdString(),
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,0,9">
|
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,0,9">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1,1,1,1,0,0,3">
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1,1,1,1,3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -56,20 +56,6 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="comboBox_2"/>
|
<widget class="QComboBox" name="comboBox_2"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>拍照</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>检测</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|
Loading…
Reference in New Issue