更新代码

This commit is contained in:
feiyangqingyun
2021-12-15 13:21:50 +08:00
parent e215d3989b
commit 2c90b59c31
84 changed files with 145 additions and 143 deletions

View File

@@ -1,23 +1,28 @@
<RCC>
<qresource prefix="/">
<file>qss/psblack.css</file>
<file>qss/psblack/add_bottom.png</file>
<file>qss/psblack/add_left.png</file>
<file>qss/psblack/add_right.png</file>
<file>qss/psblack/add_top.png</file>
<file>qss/psblack/branch_close.png</file>
<file>qss/psblack/branch_open.png</file>
<file>qss/psblack/calendar_nextmonth.png</file>
<file>qss/psblack/calendar_prevmonth.png</file>
<file>qss/psblack/checkbox_checked.png</file>
<file>qss/psblack/checkbox_checked_disable.png</file>
<file>qss/psblack/checkbox_parcial.png</file>
<file>qss/psblack/checkbox_parcial_disable.png</file>
<file>qss/psblack/checkbox_unchecked.png</file>
<file>qss/psblack/checkbox_unchecked_disable.png</file>
<file>qss/psblack/radiobutton_checked.png</file>
<file>qss/psblack/radiobutton_checked_disable.png</file>
<file>qss/psblack/radiobutton_unchecked.png</file>
<file>qss/psblack/radiobutton_unchecked_disable.png</file>
<file>qss/blacksoft.css</file>
<file>qss/blacksoft/add_bottom.png</file>
<file>qss/blacksoft/add_left.png</file>
<file>qss/blacksoft/add_right.png</file>
<file>qss/blacksoft/add_top.png</file>
<file>qss/blacksoft/arrow_bottom.png</file>
<file>qss/blacksoft/arrow_left.png</file>
<file>qss/blacksoft/arrow_right.png</file>
<file>qss/blacksoft/arrow_top.png</file>
<file>qss/blacksoft/branch_close.png</file>
<file>qss/blacksoft/branch_open.png</file>
<file>qss/blacksoft/calendar_nextmonth.png</file>
<file>qss/blacksoft/calendar_prevmonth.png</file>
<file>qss/blacksoft/checkbox_checked.png</file>
<file>qss/blacksoft/checkbox_checked_disable.png</file>
<file>qss/blacksoft/checkbox_parcial.png</file>
<file>qss/blacksoft/checkbox_parcial_disable.png</file>
<file>qss/blacksoft/checkbox_unchecked.png</file>
<file>qss/blacksoft/checkbox_unchecked_disable.png</file>
<file>qss/blacksoft/menu_checked.png</file>
<file>qss/blacksoft/radiobutton_checked.png</file>
<file>qss/blacksoft/radiobutton_checked_disable.png</file>
<file>qss/blacksoft/radiobutton_unchecked.png</file>
<file>qss/blacksoft/radiobutton_unchecked_disable.png</file>
</qresource>
</RCC>

View File

@@ -155,19 +155,19 @@ height:15px;
}
QRadioButton::indicator::unchecked{
image:url(:/qss/psblack/radiobutton_unchecked.png);
image:url(:/qss/blacksoft/radiobutton_unchecked.png);
}
QRadioButton::indicator::unchecked:disabled{
image:url(:/qss/psblack/radiobutton_unchecked_disable.png);
image:url(:/qss/blacksoft/radiobutton_unchecked_disable.png);
}
QRadioButton::indicator::checked{
image:url(:/qss/psblack/radiobutton_checked.png);
image:url(:/qss/blacksoft/radiobutton_checked.png);
}
QRadioButton::indicator::checked:disabled{
image:url(:/qss/psblack/radiobutton_checked_disable.png);
image:url(:/qss/blacksoft/radiobutton_checked_disable.png);
}
QGroupBox::indicator,QTreeView::indicator,QListView::indicator,QTableView::indicator{
@@ -180,38 +180,38 @@ height:13px;
}
QCheckBox::indicator:unchecked,QGroupBox::indicator:unchecked,QTreeView::indicator:unchecked,QListView::indicator:unchecked,QTableView::indicator:unchecked{
image:url(:/qss/psblack/checkbox_unchecked.png);
image:url(:/qss/blacksoft/checkbox_unchecked.png);
}
QCheckBox::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled,QTreeView::indicator:unchecked:disabled,QListView::indicator:unchecked:disabled,QTableView::indicator:unchecked:disabled{
image:url(:/qss/psblack/checkbox_unchecked_disable.png);
image:url(:/qss/blacksoft/checkbox_unchecked_disable.png);
}
QCheckBox::indicator:checked,QGroupBox::indicator:checked,QTreeView::indicator:checked,QListView::indicator:checked,QTableView::indicator:checked{
image:url(:/qss/psblack/checkbox_checked.png);
image:url(:/qss/blacksoft/checkbox_checked.png);
}
QCheckBox::indicator:checked:disabled,QGroupBox::indicator:checked:disabled,QTreeView::indicator:checked:disabled,QListView::indicator:checked:disabled,QTableView::indicator:checked:disabled{
image:url(:/qss/psblack/checkbox_checked_disable.png);
image:url(:/qss/blacksoft/checkbox_checked_disable.png);
}
QCheckBox::indicator:indeterminate,QGroupBox::indicator:indeterminate,QTreeView::indicator:indeterminate,QListView::indicator:indeterminate,QTableView::indicator:indeterminate{
image:url(:/qss/psblack/checkbox_parcial.png);
image:url(:/qss/blacksoft/checkbox_parcial.png);
}
QCheckBox::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled,QTreeView::indicator:indeterminate:disabled,QListView::indicator:indeterminate:disabled,QTableView::indicator:indeterminate:disabled{
image:url(:/qss/psblack/checkbox_parcial_disable.png);
image:url(:/qss/blacksoft/checkbox_parcial_disable.png);
}
QTimeEdit::up-button,QDateEdit::up-button,QDateTimeEdit::up-button,QDoubleSpinBox::up-button,QSpinBox::up-button{
image:url(:/qss/psblack/add_top.png);
image:url(:/qss/blacksoft/add_top.png);
width:10px;
height:10px;
padding:2px 5px 0px 0px;
}
QTimeEdit::down-button,QDateEdit::down-button,QDateTimeEdit::down-button,QDoubleSpinBox::down-button,QSpinBox::down-button{
image:url(:/qss/psblack/add_bottom.png);
image:url(:/qss/blacksoft/add_bottom.png);
width:10px;
height:10px;
padding:0px 5px 2px 0px;
@@ -226,7 +226,7 @@ bottom:-2px;
}
QComboBox::down-arrow,QDateEdit[calendarPopup="true"]::down-arrow,QTimeEdit[calendarPopup="true"]::down-arrow,QDateTimeEdit[calendarPopup="true"]::down-arrow{
image:url(:/qss/psblack/add_bottom.png);
image:url(:/qss/blacksoft/add_bottom.png);
width:10px;
height:10px;
right:2px;
@@ -271,11 +271,11 @@ height:13px;
}
QMenu::indicator::checked{
image:url(:/qss/psblack/menu_checked.png);
image:url(:/qss/blacksoft/menu_checked.png);
}
QMenu::right-arrow{
image:url(:/qss/psblack/arrow_right.png);
image:url(:/qss/blacksoft/arrow_right.png);
width:13px;
height:13px;
padding:0px 3px 0px 0px;
@@ -445,12 +445,12 @@ gridline-color:#242424;
QTreeView::branch:closed:has-children{
margin:4px;
border-image:url(:/qss/psblack/branch_open.png);
border-image:url(:/qss/blacksoft/branch_open.png);
}
QTreeView::branch:open:has-children{
margin:4px;
border-image:url(:/qss/psblack/branch_close.png);
border-image:url(:/qss/blacksoft/branch_close.png);
}
QTreeView,QListView,QTableView,QSplitter::handle,QTreeView::branch{
@@ -578,13 +578,13 @@ min-width:80px;
QToolButton#qt_calendar_prevmonth{
icon-size:0px;
min-width:20px;
image:url(:/qss/psblack/calendar_prevmonth.png);
image:url(:/qss/blacksoft/calendar_prevmonth.png);
}
QToolButton#qt_calendar_nextmonth{
icon-size:0px;
min-width:20px;
image:url(:/qss/psblack/calendar_nextmonth.png);
image:url(:/qss/blacksoft/calendar_nextmonth.png);
}
QToolButton#qt_calendar_prevmonth,QToolButton#qt_calendar_nextmonth,QToolButton#qt_calendar_monthbutton,QToolButton#qt_calendar_yearbutton{

View File

Before

Width:  |  Height:  |  Size: 335 B

After

Width:  |  Height:  |  Size: 335 B

View File

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

View File

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 352 B

View File

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 348 B

View File

Before

Width:  |  Height:  |  Size: 335 B

After

Width:  |  Height:  |  Size: 335 B

View File

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 370 B

View File

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 354 B

View File

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

View File

Before

Width:  |  Height:  |  Size: 257 B

After

Width:  |  Height:  |  Size: 257 B

View File

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

View File

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 623 B

View File

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 667 B

View File

Before

Width:  |  Height:  |  Size: 593 B

After

Width:  |  Height:  |  Size: 593 B

View File

Before

Width:  |  Height:  |  Size: 656 B

After

Width:  |  Height:  |  Size: 656 B

View File

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 326 B

View File

Before

Width:  |  Height:  |  Size: 333 B

After

Width:  |  Height:  |  Size: 333 B

View File

Before

Width:  |  Height:  |  Size: 572 B

After

Width:  |  Height:  |  Size: 572 B

View File

Before

Width:  |  Height:  |  Size: 624 B

After

Width:  |  Height:  |  Size: 624 B

View File

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 501 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -74,10 +74,10 @@ void frmMain::on_btnStyle1_clicked()
void frmMain::on_btnStyle2_clicked()
{
loadStyle(":/qss/flatwhite.css");
loadStyle(":/qss/flatgray.css");
}
void frmMain::on_btnStyle3_clicked()
{
loadStyle(":/qss/psblack.css");
loadStyle(":/qss/blacksoft.css");
}

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
<width>817</width>
<height>616</height>
</rect>
</property>
<property name="windowTitle">
@@ -129,7 +129,7 @@
<item row="2" column="2">
<widget class="QPushButton" name="btnStyle3">
<property name="text">
<string>PS黑色</string>
<string>软件黑</string>
</property>
</widget>
</item>
@@ -254,7 +254,7 @@
</size>
</property>
<property name="text">
<string>蓝色</string>
<string>蓝色</string>
</property>
</widget>
</item>
@@ -324,7 +324,7 @@
<item row="1" column="2">
<widget class="QPushButton" name="btnStyle2">
<property name="text">
<string>扁平白色</string>
<string>扁平</string>
</property>
</widget>
</item>
@@ -765,7 +765,7 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<width>817</width>
<height>26</height>
</rect>
</property>

View File

@@ -1,31 +1,30 @@
<RCC>
<qresource prefix="/">
<file>qss/flatwhite.css</file>
<file>qss/flatgray.css</file>
<file>qss/lightblue.css</file>
<file>qss/psblack.css</file>
<file>qss/flatwhite/add_bottom.png</file>
<file>qss/flatwhite/add_left.png</file>
<file>qss/flatwhite/add_right.png</file>
<file>qss/flatwhite/add_top.png</file>
<file>qss/flatwhite/arrow_bottom.png</file>
<file>qss/flatwhite/arrow_left.png</file>
<file>qss/flatwhite/arrow_right.png</file>
<file>qss/flatwhite/arrow_top.png</file>
<file>qss/flatwhite/branch_close.png</file>
<file>qss/flatwhite/branch_open.png</file>
<file>qss/flatwhite/calendar_nextmonth.png</file>
<file>qss/flatwhite/calendar_prevmonth.png</file>
<file>qss/flatwhite/checkbox_checked.png</file>
<file>qss/flatwhite/checkbox_checked_disable.png</file>
<file>qss/flatwhite/checkbox_parcial.png</file>
<file>qss/flatwhite/checkbox_parcial_disable.png</file>
<file>qss/flatwhite/checkbox_unchecked.png</file>
<file>qss/flatwhite/checkbox_unchecked_disable.png</file>
<file>qss/flatwhite/menu_checked.png</file>
<file>qss/flatwhite/radiobutton_checked.png</file>
<file>qss/flatwhite/radiobutton_checked_disable.png</file>
<file>qss/flatwhite/radiobutton_unchecked.png</file>
<file>qss/flatwhite/radiobutton_unchecked_disable.png</file>
<file>qss/flatgray/add_bottom.png</file>
<file>qss/flatgray/add_left.png</file>
<file>qss/flatgray/add_right.png</file>
<file>qss/flatgray/add_top.png</file>
<file>qss/flatgray/arrow_bottom.png</file>
<file>qss/flatgray/arrow_left.png</file>
<file>qss/flatgray/arrow_right.png</file>
<file>qss/flatgray/arrow_top.png</file>
<file>qss/flatgray/branch_close.png</file>
<file>qss/flatgray/branch_open.png</file>
<file>qss/flatgray/calendar_nextmonth.png</file>
<file>qss/flatgray/calendar_prevmonth.png</file>
<file>qss/flatgray/checkbox_checked.png</file>
<file>qss/flatgray/checkbox_checked_disable.png</file>
<file>qss/flatgray/checkbox_parcial.png</file>
<file>qss/flatgray/checkbox_parcial_disable.png</file>
<file>qss/flatgray/checkbox_unchecked.png</file>
<file>qss/flatgray/checkbox_unchecked_disable.png</file>
<file>qss/flatgray/menu_checked.png</file>
<file>qss/flatgray/radiobutton_checked.png</file>
<file>qss/flatgray/radiobutton_checked_disable.png</file>
<file>qss/flatgray/radiobutton_unchecked.png</file>
<file>qss/flatgray/radiobutton_unchecked_disable.png</file>
<file>qss/lightblue/add_bottom.png</file>
<file>qss/lightblue/add_left.png</file>
<file>qss/lightblue/add_right.png</file>
@@ -49,28 +48,29 @@
<file>qss/lightblue/radiobutton_checked_disable.png</file>
<file>qss/lightblue/radiobutton_unchecked.png</file>
<file>qss/lightblue/radiobutton_unchecked_disable.png</file>
<file>qss/psblack/add_bottom.png</file>
<file>qss/psblack/add_left.png</file>
<file>qss/psblack/add_right.png</file>
<file>qss/psblack/add_top.png</file>
<file>qss/psblack/arrow_bottom.png</file>
<file>qss/psblack/arrow_left.png</file>
<file>qss/psblack/arrow_right.png</file>
<file>qss/psblack/arrow_top.png</file>
<file>qss/psblack/branch_close.png</file>
<file>qss/psblack/branch_open.png</file>
<file>qss/psblack/calendar_nextmonth.png</file>
<file>qss/psblack/calendar_prevmonth.png</file>
<file>qss/psblack/checkbox_checked.png</file>
<file>qss/psblack/checkbox_checked_disable.png</file>
<file>qss/psblack/checkbox_parcial.png</file>
<file>qss/psblack/checkbox_parcial_disable.png</file>
<file>qss/psblack/checkbox_unchecked.png</file>
<file>qss/psblack/checkbox_unchecked_disable.png</file>
<file>qss/psblack/menu_checked.png</file>
<file>qss/psblack/radiobutton_checked.png</file>
<file>qss/psblack/radiobutton_checked_disable.png</file>
<file>qss/psblack/radiobutton_unchecked.png</file>
<file>qss/psblack/radiobutton_unchecked_disable.png</file>
<file>qss/blacksoft.css</file>
<file>qss/blacksoft/add_bottom.png</file>
<file>qss/blacksoft/add_left.png</file>
<file>qss/blacksoft/add_right.png</file>
<file>qss/blacksoft/add_top.png</file>
<file>qss/blacksoft/arrow_bottom.png</file>
<file>qss/blacksoft/arrow_left.png</file>
<file>qss/blacksoft/arrow_right.png</file>
<file>qss/blacksoft/arrow_top.png</file>
<file>qss/blacksoft/branch_close.png</file>
<file>qss/blacksoft/branch_open.png</file>
<file>qss/blacksoft/calendar_nextmonth.png</file>
<file>qss/blacksoft/calendar_prevmonth.png</file>
<file>qss/blacksoft/checkbox_checked.png</file>
<file>qss/blacksoft/checkbox_checked_disable.png</file>
<file>qss/blacksoft/checkbox_parcial.png</file>
<file>qss/blacksoft/checkbox_parcial_disable.png</file>
<file>qss/blacksoft/checkbox_unchecked.png</file>
<file>qss/blacksoft/checkbox_unchecked_disable.png</file>
<file>qss/blacksoft/menu_checked.png</file>
<file>qss/blacksoft/radiobutton_checked.png</file>
<file>qss/blacksoft/radiobutton_checked_disable.png</file>
<file>qss/blacksoft/radiobutton_unchecked.png</file>
<file>qss/blacksoft/radiobutton_unchecked_disable.png</file>
</qresource>
</RCC>

View File

@@ -155,19 +155,19 @@ height:15px;
}
QRadioButton::indicator::unchecked{
image:url(:/qss/psblack/radiobutton_unchecked.png);
image:url(:/qss/blacksoft/radiobutton_unchecked.png);
}
QRadioButton::indicator::unchecked:disabled{
image:url(:/qss/psblack/radiobutton_unchecked_disable.png);
image:url(:/qss/blacksoft/radiobutton_unchecked_disable.png);
}
QRadioButton::indicator::checked{
image:url(:/qss/psblack/radiobutton_checked.png);
image:url(:/qss/blacksoft/radiobutton_checked.png);
}
QRadioButton::indicator::checked:disabled{
image:url(:/qss/psblack/radiobutton_checked_disable.png);
image:url(:/qss/blacksoft/radiobutton_checked_disable.png);
}
QGroupBox::indicator,QTreeView::indicator,QListView::indicator,QTableView::indicator{
@@ -180,38 +180,38 @@ height:13px;
}
QCheckBox::indicator:unchecked,QGroupBox::indicator:unchecked,QTreeView::indicator:unchecked,QListView::indicator:unchecked,QTableView::indicator:unchecked{
image:url(:/qss/psblack/checkbox_unchecked.png);
image:url(:/qss/blacksoft/checkbox_unchecked.png);
}
QCheckBox::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled,QTreeView::indicator:unchecked:disabled,QListView::indicator:unchecked:disabled,QTableView::indicator:unchecked:disabled{
image:url(:/qss/psblack/checkbox_unchecked_disable.png);
image:url(:/qss/blacksoft/checkbox_unchecked_disable.png);
}
QCheckBox::indicator:checked,QGroupBox::indicator:checked,QTreeView::indicator:checked,QListView::indicator:checked,QTableView::indicator:checked{
image:url(:/qss/psblack/checkbox_checked.png);
image:url(:/qss/blacksoft/checkbox_checked.png);
}
QCheckBox::indicator:checked:disabled,QGroupBox::indicator:checked:disabled,QTreeView::indicator:checked:disabled,QListView::indicator:checked:disabled,QTableView::indicator:checked:disabled{
image:url(:/qss/psblack/checkbox_checked_disable.png);
image:url(:/qss/blacksoft/checkbox_checked_disable.png);
}
QCheckBox::indicator:indeterminate,QGroupBox::indicator:indeterminate,QTreeView::indicator:indeterminate,QListView::indicator:indeterminate,QTableView::indicator:indeterminate{
image:url(:/qss/psblack/checkbox_parcial.png);
image:url(:/qss/blacksoft/checkbox_parcial.png);
}
QCheckBox::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled,QTreeView::indicator:indeterminate:disabled,QListView::indicator:indeterminate:disabled,QTableView::indicator:indeterminate:disabled{
image:url(:/qss/psblack/checkbox_parcial_disable.png);
image:url(:/qss/blacksoft/checkbox_parcial_disable.png);
}
QTimeEdit::up-button,QDateEdit::up-button,QDateTimeEdit::up-button,QDoubleSpinBox::up-button,QSpinBox::up-button{
image:url(:/qss/psblack/add_top.png);
image:url(:/qss/blacksoft/add_top.png);
width:10px;
height:10px;
padding:2px 5px 0px 0px;
}
QTimeEdit::down-button,QDateEdit::down-button,QDateTimeEdit::down-button,QDoubleSpinBox::down-button,QSpinBox::down-button{
image:url(:/qss/psblack/add_bottom.png);
image:url(:/qss/blacksoft/add_bottom.png);
width:10px;
height:10px;
padding:0px 5px 2px 0px;
@@ -226,7 +226,7 @@ bottom:-2px;
}
QComboBox::down-arrow,QDateEdit[calendarPopup="true"]::down-arrow,QTimeEdit[calendarPopup="true"]::down-arrow,QDateTimeEdit[calendarPopup="true"]::down-arrow{
image:url(:/qss/psblack/add_bottom.png);
image:url(:/qss/blacksoft/add_bottom.png);
width:10px;
height:10px;
right:2px;
@@ -271,11 +271,11 @@ height:13px;
}
QMenu::indicator::checked{
image:url(:/qss/psblack/menu_checked.png);
image:url(:/qss/blacksoft/menu_checked.png);
}
QMenu::right-arrow{
image:url(:/qss/psblack/arrow_right.png);
image:url(:/qss/blacksoft/arrow_right.png);
width:13px;
height:13px;
padding:0px 3px 0px 0px;
@@ -445,12 +445,12 @@ gridline-color:#242424;
QTreeView::branch:closed:has-children{
margin:4px;
border-image:url(:/qss/psblack/branch_open.png);
border-image:url(:/qss/blacksoft/branch_open.png);
}
QTreeView::branch:open:has-children{
margin:4px;
border-image:url(:/qss/psblack/branch_close.png);
border-image:url(:/qss/blacksoft/branch_close.png);
}
QTreeView,QListView,QTableView,QSplitter::handle,QTreeView::branch{
@@ -578,13 +578,13 @@ min-width:80px;
QToolButton#qt_calendar_prevmonth{
icon-size:0px;
min-width:20px;
image:url(:/qss/psblack/calendar_prevmonth.png);
image:url(:/qss/blacksoft/calendar_prevmonth.png);
}
QToolButton#qt_calendar_nextmonth{
icon-size:0px;
min-width:20px;
image:url(:/qss/psblack/calendar_nextmonth.png);
image:url(:/qss/blacksoft/calendar_nextmonth.png);
}
QToolButton#qt_calendar_prevmonth,QToolButton#qt_calendar_nextmonth,QToolButton#qt_calendar_monthbutton,QToolButton#qt_calendar_yearbutton{

View File

Before

Width:  |  Height:  |  Size: 335 B

After

Width:  |  Height:  |  Size: 335 B

View File

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

View File

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 352 B

View File

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 348 B

View File

Before

Width:  |  Height:  |  Size: 335 B

After

Width:  |  Height:  |  Size: 335 B

View File

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 370 B

View File

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 354 B

View File

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

View File

Before

Width:  |  Height:  |  Size: 257 B

After

Width:  |  Height:  |  Size: 257 B

View File

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

View File

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 623 B

View File

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 667 B

View File

Before

Width:  |  Height:  |  Size: 593 B

After

Width:  |  Height:  |  Size: 593 B

View File

Before

Width:  |  Height:  |  Size: 656 B

After

Width:  |  Height:  |  Size: 656 B

View File

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 326 B

View File

Before

Width:  |  Height:  |  Size: 333 B

After

Width:  |  Height:  |  Size: 333 B

View File

Before

Width:  |  Height:  |  Size: 572 B

After

Width:  |  Height:  |  Size: 572 B

View File

Before

Width:  |  Height:  |  Size: 624 B

After

Width:  |  Height:  |  Size: 624 B

View File

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 501 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -155,19 +155,19 @@ height:15px;
}
QRadioButton::indicator::unchecked{
image:url(:/qss/flatwhite/radiobutton_unchecked.png);
image:url(:/qss/flatgray/radiobutton_unchecked.png);
}
QRadioButton::indicator::unchecked:disabled{
image:url(:/qss/flatwhite/radiobutton_unchecked_disable.png);
image:url(:/qss/flatgray/radiobutton_unchecked_disable.png);
}
QRadioButton::indicator::checked{
image:url(:/qss/flatwhite/radiobutton_checked.png);
image:url(:/qss/flatgray/radiobutton_checked.png);
}
QRadioButton::indicator::checked:disabled{
image:url(:/qss/flatwhite/radiobutton_checked_disable.png);
image:url(:/qss/flatgray/radiobutton_checked_disable.png);
}
QGroupBox::indicator,QTreeView::indicator,QListView::indicator,QTableView::indicator{
@@ -180,38 +180,38 @@ height:13px;
}
QCheckBox::indicator:unchecked,QGroupBox::indicator:unchecked,QTreeView::indicator:unchecked,QListView::indicator:unchecked,QTableView::indicator:unchecked{
image:url(:/qss/flatwhite/checkbox_unchecked.png);
image:url(:/qss/flatgray/checkbox_unchecked.png);
}
QCheckBox::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled,QTreeView::indicator:unchecked:disabled,QListView::indicator:unchecked:disabled,QTableView::indicator:unchecked:disabled{
image:url(:/qss/flatwhite/checkbox_unchecked_disable.png);
image:url(:/qss/flatgray/checkbox_unchecked_disable.png);
}
QCheckBox::indicator:checked,QGroupBox::indicator:checked,QTreeView::indicator:checked,QListView::indicator:checked,QTableView::indicator:checked{
image:url(:/qss/flatwhite/checkbox_checked.png);
image:url(:/qss/flatgray/checkbox_checked.png);
}
QCheckBox::indicator:checked:disabled,QGroupBox::indicator:checked:disabled,QTreeView::indicator:checked:disabled,QListView::indicator:checked:disabled,QTableView::indicator:checked:disabled{
image:url(:/qss/flatwhite/checkbox_checked_disable.png);
image:url(:/qss/flatgray/checkbox_checked_disable.png);
}
QCheckBox::indicator:indeterminate,QGroupBox::indicator:indeterminate,QTreeView::indicator:indeterminate,QListView::indicator:indeterminate,QTableView::indicator:indeterminate{
image:url(:/qss/flatwhite/checkbox_parcial.png);
image:url(:/qss/flatgray/checkbox_parcial.png);
}
QCheckBox::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled,QTreeView::indicator:indeterminate:disabled,QListView::indicator:indeterminate:disabled,QTableView::indicator:indeterminate:disabled{
image:url(:/qss/flatwhite/checkbox_parcial_disable.png);
image:url(:/qss/flatgray/checkbox_parcial_disable.png);
}
QTimeEdit::up-button,QDateEdit::up-button,QDateTimeEdit::up-button,QDoubleSpinBox::up-button,QSpinBox::up-button{
image:url(:/qss/flatwhite/add_top.png);
image:url(:/qss/flatgray/add_top.png);
width:10px;
height:10px;
padding:2px 5px 0px 0px;
}
QTimeEdit::down-button,QDateEdit::down-button,QDateTimeEdit::down-button,QDoubleSpinBox::down-button,QSpinBox::down-button{
image:url(:/qss/flatwhite/add_bottom.png);
image:url(:/qss/flatgray/add_bottom.png);
width:10px;
height:10px;
padding:0px 5px 2px 0px;
@@ -226,7 +226,7 @@ bottom:-2px;
}
QComboBox::down-arrow,QDateEdit[calendarPopup="true"]::down-arrow,QTimeEdit[calendarPopup="true"]::down-arrow,QDateTimeEdit[calendarPopup="true"]::down-arrow{
image:url(:/qss/flatwhite/add_bottom.png);
image:url(:/qss/flatgray/add_bottom.png);
width:10px;
height:10px;
right:2px;
@@ -271,11 +271,11 @@ height:13px;
}
QMenu::indicator::checked{
image:url(:/qss/flatwhite/menu_checked.png);
image:url(:/qss/flatgray/menu_checked.png);
}
QMenu::right-arrow{
image:url(:/qss/flatwhite/arrow_right.png);
image:url(:/qss/flatgray/arrow_right.png);
width:13px;
height:13px;
padding:0px 3px 0px 0px;
@@ -445,12 +445,12 @@ gridline-color:#B6B6B6;
QTreeView::branch:closed:has-children{
margin:4px;
border-image:url(:/qss/flatwhite/branch_open.png);
border-image:url(:/qss/flatgray/branch_open.png);
}
QTreeView::branch:open:has-children{
margin:4px;
border-image:url(:/qss/flatwhite/branch_close.png);
border-image:url(:/qss/flatgray/branch_close.png);
}
QTreeView,QListView,QTableView,QSplitter::handle,QTreeView::branch{
@@ -578,13 +578,13 @@ min-width:80px;
QToolButton#qt_calendar_prevmonth{
icon-size:0px;
min-width:20px;
image:url(:/qss/flatwhite/calendar_prevmonth.png);
image:url(:/qss/flatgray/calendar_prevmonth.png);
}
QToolButton#qt_calendar_nextmonth{
icon-size:0px;
min-width:20px;
image:url(:/qss/flatwhite/calendar_nextmonth.png);
image:url(:/qss/flatgray/calendar_nextmonth.png);
}
QToolButton#qt_calendar_prevmonth,QToolButton#qt_calendar_nextmonth,QToolButton#qt_calendar_monthbutton,QToolButton#qt_calendar_yearbutton{

View File

Before

Width:  |  Height:  |  Size: 336 B

After

Width:  |  Height:  |  Size: 336 B

View File

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 370 B

View File

Before

Width:  |  Height:  |  Size: 358 B

After

Width:  |  Height:  |  Size: 358 B

View File

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 332 B

View File

Before

Width:  |  Height:  |  Size: 337 B

After

Width:  |  Height:  |  Size: 337 B

View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 361 B

After

Width:  |  Height:  |  Size: 361 B

View File

Before

Width:  |  Height:  |  Size: 263 B

After

Width:  |  Height:  |  Size: 263 B

View File

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

View File

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

View File

Before

Width:  |  Height:  |  Size: 740 B

After

Width:  |  Height:  |  Size: 740 B

View File

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 616 B

View File

Before

Width:  |  Height:  |  Size: 639 B

After

Width:  |  Height:  |  Size: 639 B

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

View File

Before

Width:  |  Height:  |  Size: 612 B

After

Width:  |  Height:  |  Size: 612 B

View File

Before

Width:  |  Height:  |  Size: 646 B

After

Width:  |  Height:  |  Size: 646 B

View File

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
QUIHelper::setCode();
//加载样式表
QFile file(":/qss/psblack.css");
QFile file(":/qss/blacksoft.css");
if (file.open(QFile::ReadOnly)) {
QString qss = QLatin1String(file.readAll());
QString paletteColor = qss.mid(20, 7);

BIN
ui/uidemo01/snap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -98,7 +98,7 @@ void frmMain::initStyle()
{
//加载样式表
QString qss;
QFile file(":/qss/psblack.css");
QFile file(":/qss/blacksoft.css");
if (file.open(QFile::ReadOnly)) {
qss = QLatin1String(file.readAll());
QString paletteColor = qss.mid(20, 7);

View File

@@ -16,6 +16,8 @@ frmMain::~frmMain()
void frmMain::initForm()
{
this->setWindowTitle("九宫格主界面");
bg = "main2.jpg";
QList<QToolButton *> btns = this->findChildren<QToolButton *>();

View File

@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
QUIHelper::setCode();
//加载样式表
QFile file(":/qss/psblack.css");
QFile file(":/qss/blacksoft.css");
if (file.open(QFile::ReadOnly)) {
QString qss = QLatin1String(file.readAll());
QString paletteColor = qss.mid(20, 7);
@@ -26,7 +26,6 @@ int main(int argc, char *argv[])
}
frmMain w;
w.setWindowTitle("九宫格主界面 (QQ: 517216493 WX: feiyangqingyun)");
QUIHelper::setFormInCenter(&w);
w.show();

BIN
ui/uidemo09/snap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

BIN
ui/uidemo10/snap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB