//背景颜色 使用"#对象名"可以限定只针对具体小部件设置背景
#treeView{
background-color: rgb(64, 66, 68);
}
//行高
QTreeView::item{
margin:19px;
}
//展开按钮设置
QTreeView::branch {
}
QTreeView::branch:closed:has-children:has-siblings {
background-color: rgb(0, 0, 255);
}
QTreeView::branch:open:has-children:has-siblings {
background-color: rgb(255, 0, 0);
}
QTreeView::branch:has-children:!has-siblings:closed {
background-color: rgb(0, 0, 255);
}
QTreeView::branch:open:has-children:!has-siblings {
background-color: rgb(255, 0, 0);
}