//具体
QListWidget#listWidget_param::Item:hover,
QListWidget#listWidget_param::Item:selected {
background-color:rgba(22, 29, 36, 1);
}
QListWidget#listWidget_param::Item:selected:!active {
background-color:rgba(22, 29, 36, 1);
}
//通用
QListWidget::Item:hover,
QListWidget::Item:selected {
background-color:rgba(22, 29, 36, 1);
}
QListWidget::Item:selected:!active {
background-color:rgba(22, 29, 36, 1);
}
QListWidget{ //去掉选中时的虚线框
outline:0px;
}
QTreeView
{
alternate-background-color:rgba(0,0,0,30);
background:transparent;
gridline-color:#39546e;
border:1px solid #5d7184;
/ * The function of this attribute is mainly used for listView, and tableView components,
You can set the background color alternate display, so that the background color is not a single color
For example, if the overall background color is set to black and the selection-background-color is red, then each item actually displayed
The color is the alternating display of black and red * /
selection-background-color:red;
}