修改 web控件

This commit is contained in:
Maicss
2020-08-26 09:39:55 +08:00
parent 8952be33c4
commit fe4143a3f7
4 changed files with 347 additions and 117 deletions

View File

@@ -2,15 +2,18 @@
ProgressLoad::ProgressLoad(QWidget *parent) : QWidget(parent)
{
m_progess=new QWidget;
m_progess=new QWidget(this);
m_progess->setStyleSheet("background-color:#999999");
setStyleSheet("background-color:#000000");
m_progess->move(0,0);
m_progess->show();
timer=new QTimer;
value=0;
timer->setInterval(100);
timer->setInterval(10);
timer->start();
connect(timer,&QTimer::timeout,[=](){
m_progess->setFixedWidth(width()/100*value);
m_progess->setFixedHeight(height());
});
}