1、checkbox.qss
QCheckBox::indicator:unchecked
{
image: url(:/assist/icon/assist-uncheck.png);
}
QCheckBox::indicator:unchecked:hover
{
image: url(:/assist/icon/assist-uncheck-hover.png);
}
QCheckBox::indicator:checked
{
image: url(:/assist/icon/assist-check.png);
}
QCheckBox::indicator:checked:hover
{
image: url(:/assist/icon/assist-check-hover.png);
}
2、combobox.qss
QComboBox
{
border: 1px solid gray;
border-radius: 3px;
padding: 1px 5px 1px 3px;
}
QComboBox:!editable, QComboBox::drop-down:editable
{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
}
QComboBox:!editable:on, QComboBox::drop-down:editable:on
{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #D3D3D3, stop: 0.4 #D8D8D8, stop: 0.5 #DDDDDD, stop: 1.0 #E1E1E1);
}
QComboBox:on
{
padding-top: 3px;
padding-left: 4px;
}
QComboBox::drop-down
{
subcontrol-origin: padding;
subcontrol-position: top right;
width: 15px;
border-left-width: 1px;
border-left-color: darkgray;
border-left-style: solid;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
QComboBox::down-arrow:on
{
top: 1px;
left: 1px;
}
QComboBox::down-arrow
{
image: url(:/assist/icon/assist-arrow-down.png);
}
3、comboboxnodroparrow.qss
QComboBox
{
border: 1px solid gray;
border-radius: 3px;
padding: 1px 5px 1px 3px;
}
QComboBox:!