QTreeWidget样式表设置


QTreeWidget
{
    color:rgb(220,220,220);
    font-size: 12pt;
    border:1px solid rgb(120,120,120);
}
QTreeWidget::item:hover
{
    color:white;
   
}
QTreeWidget::item:selected
{
 
   color:rgba(255,255,255,1);
}
QTreeWidget::indicator:unchecked
{
    border: 1px solid rgb(180, 180, 180);
}
QTreeWidget QHeaderView
{
    color:rgba(255,255,255,1);;
}
QTreeView::branch:has-siblings:!adjoins-item {
    border-image: url(:/arrows/res_images/arrows/treewidget-line.png);
}

QTreeView::branch:has-siblings:adjoins-item {
    border-image: url(:/arrows/res_images/arrows/treewidget-more.png);
}

QTreeView::branch:!has-children:!has-siblings:adjoins-item {
    border-image: url(:/arrows/res_images/arrows/treewidget-end.png);
}

QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings {
        border-image: none;
        image: url(:/arrows/res_images/arrows/arrowbluegrey-right.png);
}

QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings  {
        border-image: none;
        image: url(:/arrows/res_images/arrows/arrowbluegrey-down.png);
}

你可能感兴趣的:(Qt样式表)