更新文档
parent
4c918566bf
commit
be60a7a2fc
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="refresh" content="0.1;url=https://github.com/feiyangqingyun/QWidgetExe2/tree/master/snap_bigscreen">
|
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_bigscreen">
|
||||||
<title></title>
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="refresh" content="0.1;url=https://github.com/feiyangqingyun/QWidgetExe2/tree/master/snap_iotsystem">
|
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_iotsystem">
|
||||||
<title></title>
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="refresh" content="0.1;url=https://github.com/feiyangqingyun/QWidgetExe2/tree/master/snap_video_system">
|
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_video_system">
|
||||||
<title></title>
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
|
@ -102,7 +102,7 @@ border-radius:3px;
|
||||||
.QGroupBox{
|
.QGroupBox{
|
||||||
border:1px solid #242424;
|
border:1px solid #242424;
|
||||||
border-radius:5px;
|
border-radius:5px;
|
||||||
margin-top:3ex;
|
margin-top:9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.QGroupBox::title{
|
.QGroupBox::title{
|
||||||
|
@ -680,6 +680,10 @@ border-color:#484848;
|
||||||
color:#242424;
|
color:#242424;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLabel:disabled{
|
||||||
|
background:none;
|
||||||
|
}
|
||||||
|
|
||||||
/*TextColor:#DCDCDC*/
|
/*TextColor:#DCDCDC*/
|
||||||
/*PanelColor:#444444*/
|
/*PanelColor:#444444*/
|
||||||
/*BorderColor:#242424*/
|
/*BorderColor:#242424*/
|
||||||
|
|
|
@ -43,6 +43,10 @@ void frmMain::initForm()
|
||||||
|
|
||||||
void frmMain::loadStyle(const QString &qssFile)
|
void frmMain::loadStyle(const QString &qssFile)
|
||||||
{
|
{
|
||||||
|
//开启计时
|
||||||
|
QElapsedTimer time;
|
||||||
|
time.start();
|
||||||
|
|
||||||
//加载样式表
|
//加载样式表
|
||||||
QString qss;
|
QString qss;
|
||||||
QFile file(qssFile);
|
QFile file(qssFile);
|
||||||
|
@ -61,8 +65,11 @@ void frmMain::loadStyle(const QString &qssFile)
|
||||||
qss = list.join("\n");
|
qss = list.join("\n");
|
||||||
QString paletteColor = qss.mid(20, 7);
|
QString paletteColor = qss.mid(20, 7);
|
||||||
qApp->setPalette(QPalette(paletteColor));
|
qApp->setPalette(QPalette(paletteColor));
|
||||||
|
//用时主要在下面这句
|
||||||
qApp->setStyleSheet(qss);
|
qApp->setStyleSheet(qss);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDebug() << "用时:" << time.elapsed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void frmMain::on_btnStyle1_clicked()
|
void frmMain::on_btnStyle1_clicked()
|
||||||
|
|
|
@ -102,7 +102,7 @@ border-radius:3px;
|
||||||
.QGroupBox{
|
.QGroupBox{
|
||||||
border:1px solid #242424;
|
border:1px solid #242424;
|
||||||
border-radius:5px;
|
border-radius:5px;
|
||||||
margin-top:3ex;
|
margin-top:9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.QGroupBox::title{
|
.QGroupBox::title{
|
||||||
|
@ -680,6 +680,10 @@ border-color:#484848;
|
||||||
color:#242424;
|
color:#242424;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLabel:disabled{
|
||||||
|
background:none;
|
||||||
|
}
|
||||||
|
|
||||||
/*TextColor:#DCDCDC*/
|
/*TextColor:#DCDCDC*/
|
||||||
/*PanelColor:#444444*/
|
/*PanelColor:#444444*/
|
||||||
/*BorderColor:#242424*/
|
/*BorderColor:#242424*/
|
||||||
|
|
|
@ -102,7 +102,7 @@ border-radius:3px;
|
||||||
.QGroupBox{
|
.QGroupBox{
|
||||||
border:1px solid #B6B6B6;
|
border:1px solid #B6B6B6;
|
||||||
border-radius:5px;
|
border-radius:5px;
|
||||||
margin-top:3ex;
|
margin-top:9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.QGroupBox::title{
|
.QGroupBox::title{
|
||||||
|
@ -680,6 +680,10 @@ border-color:#E4E4E4;
|
||||||
color:#B6B6B6;
|
color:#B6B6B6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLabel:disabled{
|
||||||
|
background:none;
|
||||||
|
}
|
||||||
|
|
||||||
/*TextColor:#57595B*/
|
/*TextColor:#57595B*/
|
||||||
/*PanelColor:#FFFFFF*/
|
/*PanelColor:#FFFFFF*/
|
||||||
/*BorderColor:#B6B6B6*/
|
/*BorderColor:#B6B6B6*/
|
||||||
|
|
|
@ -102,7 +102,7 @@ border-radius:3px;
|
||||||
.QGroupBox{
|
.QGroupBox{
|
||||||
border:1px solid #C0DCF2;
|
border:1px solid #C0DCF2;
|
||||||
border-radius:5px;
|
border-radius:5px;
|
||||||
margin-top:3ex;
|
margin-top:9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.QGroupBox::title{
|
.QGroupBox::title{
|
||||||
|
@ -680,6 +680,10 @@ border-color:#DEF0FE;
|
||||||
color:#C0DCF2;
|
color:#C0DCF2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLabel:disabled{
|
||||||
|
background:none;
|
||||||
|
}
|
||||||
|
|
||||||
/*TextColor:#386487*/
|
/*TextColor:#386487*/
|
||||||
/*PanelColor:#EAF7FF*/
|
/*PanelColor:#EAF7FF*/
|
||||||
/*BorderColor:#C0DCF2*/
|
/*BorderColor:#C0DCF2*/
|
||||||
|
|
Loading…
Reference in New Issue