ui 0.2 添加loading界面 待美观

This commit is contained in:
Norah
2020-02-01 21:26:08 +08:00
parent c0cb15818b
commit 178c1ac179
5 changed files with 140 additions and 6 deletions

38
Loading.cpp Normal file
View File

@@ -0,0 +1,38 @@
#include "Loading.h"
#include "Classes/Reconstruction.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();
}
}
}