ui 0.5 载入界面(loading) ui修改

This commit is contained in:
Norah
2020-02-07 19:53:11 +08:00
parent 5511dd247d
commit 7c028498e8
5 changed files with 39 additions and 20 deletions

View File

@@ -14,14 +14,19 @@ Loading::Loading(QWidget *parent)
ui.label_2->hide();
ui.progressBar->setValue(0);
QGraphicsOpacityEffect *opacityEffect = new QGraphicsOpacityEffect;
ui.progressBar->setGraphicsEffect(opacityEffect);
opacityEffect->setOpacity(0.9);
// ±³¾°gif
// QMovie *pic = new QMovie("Resources/image/loading.gif");
// ui.label_4->setMovie(pic);
// pic->start();
// ±³¾°
QPixmap *pixmap = new QPixmap("Resources/image/loading.png");
pixmap->scaled(ui.label_4->size(), Qt::KeepAspectRatio);
ui.label_4->setScaledContents(true);
ui.label_4->setPixmap(*pixmap);
// todo ¼ÓÔØ
ui.label->hide();
ui.progressBar->setValue(100);
ui.label_2->show();
ready2Enter = true;

View File

@@ -4,7 +4,7 @@
#include "ui_Loading.h"
#include "Reconstruction.h"
#include <QMouseEvent>
#include <QMovie>
#include <QGraphicsOpacityEffect>
class Loading : public QWidget
{

BIN
Resources/image/loading.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@@ -127,15 +127,15 @@ QLCDNumber {
}
QProgressBar {
text-align: center;
color: rgb(240, 240, 240);
color: #000000;
border-width: 1px;
border-radius: 10px;
border-color: rgb(230, 230, 230);
border-style: solid;
background-color:rgb(207,207,207);
background-color: #ffffff;
}
QProgressBar::chunk {
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255));
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 #ffee99;, stop:1 #ffee99;);
border-radius: 10px;
}
QMenuBar {

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>871</width>
<height>494</height>
<width>858</width>
<height>485</height>
</rect>
</property>
<property name="windowTitle">
@@ -17,7 +17,7 @@
<property name="geometry">
<rect>
<x>360</x>
<y>200</y>
<y>410</y>
<width>151</width>
<height>41</height>
</rect>
@@ -28,6 +28,9 @@
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>LOADING...</string>
</property>
@@ -35,10 +38,10 @@
<widget class="QProgressBar" name="progressBar">
<property name="geometry">
<rect>
<x>80</x>
<x>140</x>
<y>330</y>
<width>711</width>
<height>23</height>
<width>571</width>
<height>27</height>
</rect>
</property>
<property name="value">
@@ -48,7 +51,7 @@
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>320</x>
<x>330</x>
<y>420</y>
<width>181</width>
<height>31</height>
@@ -60,6 +63,9 @@
<pointsize>18</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>按任意键进入</string>
</property>
@@ -68,7 +74,7 @@
<property name="geometry">
<rect>
<x>260</x>
<y>120</y>
<y>40</y>
<width>321</width>
<height>41</height>
</rect>
@@ -79,6 +85,9 @@
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>3D RECONSTRUCTION</string>
</property>
@@ -86,10 +95,10 @@
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>360</x>
<y>240</y>
<width>151</width>
<height>41</height>
<x>-50</x>
<y>0</y>
<width>981</width>
<height>491</height>
</rect>
</property>
<property name="font">
@@ -102,6 +111,11 @@
<string/>
</property>
</widget>
<zorder>label_4</zorder>
<zorder>label</zorder>
<zorder>progressBar</zorder>
<zorder>label_2</zorder>
<zorder>label_3</zorder>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>