16,211
社区成员
发帖
与我相关
我的任务
分享
#treeview_res_panel
{
background: #333333;
show-decoration-selected: 1;
selection-background-color: #333333;
padding-top: 20px;
}
#treeview_res_panel::item:hover,
#treeview_res_panel::branch:hover,
#treeview_res_panel::item:selected,
#treeview_res_panel::branch:selected
{
background: #db9f35;
color: #333333;
}
QTreeView::item:selected
{
background-color:red;
}
QTreeView::branch:selected
{
background-color:red;
}
QTreeView::branch:selected
{
background-color:red;
}
QTreeView::item:hover
{
background-color:blue;
}
QTreeView
{
qproperty-indentation:60;/*这表式图标的宽度*/
}
QTreeView::item
{
height:40px;
}
QTreeView::branch
{
background-color:transparent ; /*改变前面部分的颜色*/
}
QTreeView::branch:has-children
{
image: url(:/1.png);/*图标*/
image-position:right; /*对齐右边.*/
/*向右移动了20px,它等于 qproperty-indentation:60; - height:40px;*/
}