QListView {
/* 背景色 */
background-color:red;
/* 行与行之间交替颜色不同 */
/* setAlternatingRowColors(true); */
alternate-background-color:yellow;
/* 设置是否选中时,整行都高亮显示 */
show-decoration-selected:1;
}
/* 行与行之间交替颜色不同 */
/* setAlternatingRowColors(true); */
QListView::item:alternate {
background:#EEEEEE;
}
/* 当条目被选中时 */
QListView::item:selected {
border:2px solid #6a6ea9;
}
/* 当条目被选中,并且不是有效的 */
QListView::item::selected:!active {
background:qlineargradient(x1:0, y1:0,x2:1,y2:0, stop:0 #6a6ea9, stop:1 #888dd9);
}
/* 鼠标县浮在条目上 */
QListView::item::hover {
background:qlineargradient(x1:0, y1:0,x2:1,y2:0, stop:0 #000000, stop:1 #FFFFFF);
}