样式
当然alternate属性得先设置setAlternatingRowColors(true)才生效
QListWidget{//基本样式
border:0px solid #d7d7d7;
border-radius:4px;
}
QListWidget::item:hover:active
{
background-color:#ececec;
}
QListWidget::item:selected:active
{
background-color:#ececec;
}
QListWidget::item:!alternate{
background-color:#f9f9f9;
}
QListWidget::item:alternate{
background-color:#ffffff;
}