add some function of reconstruciton

This commit is contained in:
Tang1705
2020-02-03 19:48:30 +08:00
parent 8ae4c44bec
commit 0e7376ccd5
34 changed files with 251 additions and 36 deletions

37
Classes/Loading.cpp Normal file
View File

@@ -0,0 +1,37 @@
#include "Loading.h"
Loading::Loading(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
ui.label_2->hide();
ui.progressBar->setValue(0);
// todo ¼ÓÔØ
ui.progressBar->setValue(100);
ui.label_2->show();
ready2Enter = true;
}
Loading::~Loading()
{
}
void Loading::updateSlot()
{
ui.progressBar->setValue(currentValue);
}
void Loading::mousePressEvent(QMouseEvent *event)
{
if(ready2Enter)
{
if (event->button() == Qt::LeftButton)
{
this->hide();
Reconstruction *w = new Reconstruction();
w->show();
}
}
}