QListView样式表

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{

}

发布了104 篇原创文章 · 获赞 22 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/qq_41672557/article/details/103285376