ui 0.8 增大软件大小,界面优化,实现部分三维重建界面“导入点云”
This commit is contained in:
@@ -3,31 +3,19 @@
|
||||
Loading::Loading(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
// qss
|
||||
ui.setupUi(this);
|
||||
QFile file(":/qss/qss/aqua.qss");
|
||||
file.open(QFile::ReadOnly);
|
||||
QTextStream filetext(&file);
|
||||
QString stylesheet = filetext.readAll();
|
||||
this->setStyleSheet(stylesheet);
|
||||
file.close();
|
||||
|
||||
|
||||
setStyle();
|
||||
|
||||
ui.label_2->hide();
|
||||
ui.progressBar->setValue(0);
|
||||
QGraphicsOpacityEffect *opacityEffect = new QGraphicsOpacityEffect;
|
||||
ui.progressBar->setGraphicsEffect(opacityEffect);
|
||||
opacityEffect->setOpacity(0.9);
|
||||
|
||||
// ±³¾°
|
||||
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);
|
||||
// ui.progressBar->setValue(0);
|
||||
// QGraphicsOpacityEffect *opacityEffect = new QGraphicsOpacityEffect;
|
||||
// ui.progressBar->setGraphicsEffect(opacityEffect);
|
||||
// opacityEffect->setOpacity(0.9);
|
||||
|
||||
// todo ¼ÓÔØ
|
||||
// ui.progressBar->setValue(100);
|
||||
|
||||
ui.label->hide();
|
||||
ui.progressBar->setValue(100);
|
||||
ui.label_2->show();
|
||||
ready2Enter = true;
|
||||
}
|
||||
@@ -36,9 +24,40 @@ Loading::~Loading()
|
||||
{
|
||||
}
|
||||
|
||||
void Loading::setStyle()
|
||||
{
|
||||
// qss
|
||||
ui.setupUi(this);
|
||||
QFile file(":/qss/qss/aqua.qss");
|
||||
file.open(QFile::ReadOnly);
|
||||
QTextStream filetext(&file);
|
||||
QString stylesheet = filetext.readAll();
|
||||
this->setStyleSheet(stylesheet);
|
||||
file.close();
|
||||
|
||||
// Press any key to continue
|
||||
QPixmap *pixmap_press = new QPixmap(":/icon/image/loading/press.png");
|
||||
pixmap_press->scaled(ui.label_2->size(), Qt::KeepAspectRatio);
|
||||
ui.label_2->setScaledContents(true);
|
||||
ui.label_2->setPixmap(*pixmap_press);
|
||||
|
||||
//3D reconstruction
|
||||
QPixmap *pixmap_label = new QPixmap(":/icon/image/loading/label.png");
|
||||
pixmap_label->scaled(ui.label_3->size(), Qt::KeepAspectRatio);
|
||||
ui.label_3->setScaledContents(true);
|
||||
ui.label_3->setPixmap(*pixmap_label);
|
||||
|
||||
// ±³¾°
|
||||
QPixmap *pixmap = new QPixmap(":/Reconstruction/image/loading/loading.png");
|
||||
pixmap->scaled(ui.label_4->size(), Qt::KeepAspectRatio);
|
||||
ui.label_4->setScaledContents(true);
|
||||
ui.label_4->setPixmap(*pixmap);
|
||||
}
|
||||
|
||||
|
||||
void Loading::updateSlot()
|
||||
{
|
||||
ui.progressBar->setValue(currentValue);
|
||||
// ui.progressBar->setValue(currentValue);
|
||||
}
|
||||
|
||||
void Loading::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user