ui 0.2 添加loading界面 待美观
This commit is contained in:
38
Loading.cpp
Normal file
38
Loading.cpp
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user