QCombobox组合框 样式表 举例
2015-06-15 20:24
507 查看
QComboBox
{
width: 250px;
min-width: 250px;
max-width: 250px;
height: 100px;
border-radius: 3px;
border: none;
font-size: 12pt;
font-family: 微软雅黑,宋体;
background-repeat: no-repeat;
background-position: center left;
padding-left: 42px;
color: white;
selection-color: black;
selection-background-color: darkgray;
}
QComboBox::drop-down
{
background-color: black;
min-width: 100px;
}
QComboBox QAbstractItemView
{
border: none;
color: grey;
selection-color: black;
selection-background-color: darkgrey;
}
QComboBox QAbstractItemView::item
{
height: 100px;
min-height:100px;
}
{
width: 250px;
min-width: 250px;
max-width: 250px;
height: 100px;
border-radius: 3px;
border: none;
font-size: 12pt;
font-family: 微软雅黑,宋体;
background-repeat: no-repeat;
background-position: center left;
padding-left: 42px;
color: white;
selection-color: black;
selection-background-color: darkgray;
}
QComboBox::drop-down
{
background-color: black;
min-width: 100px;
}
QComboBox QAbstractItemView
{
border: none;
color: grey;
selection-color: black;
selection-background-color: darkgrey;
}
QComboBox QAbstractItemView::item
{
height: 100px;
min-height:100px;
}