QListView{
Background-cp;pr:red;//背景色
Alternate-background-color:yellow;//行与行之间交替的颜色setAlternatingRowColors(true);
Show-decoration-selected:1;设置是否选中时,整行都高亮显示
}
//交替颜色设置
QListView::item:alternate{
Background:#000000;
}
//当条目被选中时
QListView::item:selected{
Border:2px solid #000000;
}
//当条目被选中,并且不是有效的
QListView::item::selected:!active{
}
//鼠标悬浮在条目上
QListView::item::hover{
}