改进很多代码
@@ -152,9 +152,9 @@ void frmMain::initStyle()
|
||||
{
|
||||
//加载样式表
|
||||
QString qss;
|
||||
QFile file(":/qss/psblack.css");
|
||||
//QFile file(":/qss/psblack.css");
|
||||
//QFile file(":/qss/flatwhite.css");
|
||||
//QFile file(":/qss/lightblue.css");
|
||||
QFile file(":/qss/lightblue.css");
|
||||
if (file.open(QFile::ReadOnly)) {
|
||||
#if 1
|
||||
//用QTextStream读取样式文件不用区分文件编码 带bom也行
|
||||
|
||||
@@ -396,6 +396,9 @@
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLCDNumber" name="lcdNumber">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="digitCount">
|
||||
<number>5</number>
|
||||
</property>
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
//设置不应用操作系统设置比如字体
|
||||
QApplication::setDesktopSettingsAware(false);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5,14,0))
|
||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Floor);
|
||||
#endif
|
||||
|
||||
@@ -643,15 +643,23 @@ QTabWidget::pane:bottom{bottom:-1px;}
|
||||
QTabWidget::pane:left{right:-1px;}
|
||||
QTabWidget::pane:right{left:-1px;}
|
||||
|
||||
QDialog {
|
||||
QDialog,QDial{
|
||||
background-color:#FFFFFF;
|
||||
color:#57595B;
|
||||
}
|
||||
|
||||
QDialogButtonBox > QPushButton {
|
||||
QDialogButtonBox>QPushButton{
|
||||
min-width:50px;
|
||||
}
|
||||
|
||||
QListView[noboder="true"],QTreeView[noboder="true"],QTabWidget[noboder="true"]::pane{
|
||||
border-width:0px;
|
||||
}
|
||||
|
||||
QToolBar>*,QStatusBar>*{
|
||||
margin:2px;
|
||||
}
|
||||
|
||||
*:disabled,QMenu::item:disabled{
|
||||
background:#FFFFFF;
|
||||
border-color:#E4E4E4;
|
||||
|
||||
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 370 B |
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 332 B |
|
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 337 B |
|
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 376 B |
|
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 360 B |
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 361 B |
|
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 263 B |
|
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 662 B After Width: | Height: | Size: 655 B |
|
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 740 B |
|
Before Width: | Height: | Size: 592 B After Width: | Height: | Size: 616 B |
|
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 639 B |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 341 B |
|
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 612 B |
|
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 646 B |
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 542 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -643,15 +643,23 @@ QTabWidget::pane:bottom{bottom:-1px;}
|
||||
QTabWidget::pane:left{right:-1px;}
|
||||
QTabWidget::pane:right{left:-1px;}
|
||||
|
||||
QDialog {
|
||||
QDialog,QDial{
|
||||
background-color:#EAF7FF;
|
||||
color:#386487;
|
||||
}
|
||||
|
||||
QDialogButtonBox > QPushButton {
|
||||
QDialogButtonBox>QPushButton{
|
||||
min-width:50px;
|
||||
}
|
||||
|
||||
QListView[noboder="true"],QTreeView[noboder="true"],QTabWidget[noboder="true"]::pane{
|
||||
border-width:0px;
|
||||
}
|
||||
|
||||
QToolBar>*,QStatusBar>*{
|
||||
margin:2px;
|
||||
}
|
||||
|
||||
*:disabled,QMenu::item:disabled{
|
||||
background:#EAF7FF;
|
||||
border-color:#DEF0FE;
|
||||
|
||||
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 348 B |
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 383 B |
|
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 364 B |
|
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 367 B |
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 348 B |
|
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 383 B |
|
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 364 B |
|
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 361 B |
|
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 462 B |
|
Before Width: | Height: | Size: 674 B After Width: | Height: | Size: 670 B |
|
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 758 B |
|
Before Width: | Height: | Size: 574 B After Width: | Height: | Size: 636 B |
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 664 B |
|
Before Width: | Height: | Size: 237 B After Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 613 B |
|
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 648 B |
|
Before Width: | Height: | Size: 551 B After Width: | Height: | Size: 554 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -643,15 +643,23 @@ QTabWidget::pane:bottom{bottom:-1px;}
|
||||
QTabWidget::pane:left{right:-1px;}
|
||||
QTabWidget::pane:right{left:-1px;}
|
||||
|
||||
QDialog {
|
||||
QDialog,QDial{
|
||||
background-color:#444444;
|
||||
color:#DCDCDC;
|
||||
}
|
||||
|
||||
QDialogButtonBox > QPushButton {
|
||||
QDialogButtonBox>QPushButton{
|
||||
min-width:50px;
|
||||
}
|
||||
|
||||
QListView[noboder="true"],QTreeView[noboder="true"],QTabWidget[noboder="true"]::pane{
|
||||
border-width:0px;
|
||||
}
|
||||
|
||||
QToolBar>*,QStatusBar>*{
|
||||
margin:2px;
|
||||
}
|
||||
|
||||
*:disabled,QMenu::item:disabled{
|
||||
background:#444444;
|
||||
border-color:#484848;
|
||||
|
||||
|
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 377 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 352 B |
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 348 B |
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 370 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 349 B |
|
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 257 B |
|
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 612 B After Width: | Height: | Size: 623 B |
|
Before Width: | Height: | Size: 670 B After Width: | Height: | Size: 667 B |
|
Before Width: | Height: | Size: 587 B After Width: | Height: | Size: 593 B |
|
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 656 B |
|
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 326 B |
|
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 333 B |
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 572 B |
|
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 624 B |
|
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 501 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |