ui->comboBox->setView(new QListView());
QString css=R"(
QWidget
{
background:qlineargradient(x1:0,y1:0,x2:1,y2:1,
stop:0 #777777,stop:1 #111111);
}
QComboBox
{
background:qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 #555555,stop:0.5 #000000,stop:1 #555555);
color:green;
min-width:300px;
min-height:64px;
selection-background-color:#333366;
padding-right:4px;
}
QComboBox::down-arrow
{
width:48px;
height:48px;
}
QComboBox:drop-down
{
width:60px;
subcontrol-origin:padding;
subcontrol-position:right top;
}
QComboBox:on
{
left:2px;
top:2px;
}
QComboBox QAbstractItemView::item
{
background:qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 #444444,stop:0.5 #111111,stop:1 #444444);
color:green;
min-height:64px;
margin:1px;
}
QComboBox QAbstractItemView::item:hover
{
background:qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 #555599,stop:0.5 #555555,stop:1 #555599);
color:#ffff00;
min-height:64px;
margin:1px;
}
QComboBox QAbstractItemView::item:!hover
{
background:qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 #444444,stop:0.5 #111111,stop:1 #444444);
color:#ff0000;
min-height:64px;
margin:1px;
}
QComboBox QScrollBar
{
background:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #55555,stop:1 #aaaaaa);
}
)";