QTreeWidget样式

QTreeWidget 
{	
	border: none;
	padding:20px;
    border-image:url(:/img/plotwidget/treewidget_bg.png) 0 0 0 0;/*0 0 0 0距离图片上 右 下 左的距离*/
}
QTreeWidget::item 
{
    min-height: 36px;
    max-height: 36px;
	border: none; 
    padding: 0px;
	color:white;
	font: 14px "思源黑体 CN Medium";
}
QTreeWidget::item:hover {background-color: #1B79D6;}
QTreeWidget::item:selected {background-color: #27B3FF;}
QTreeWidget::item:has-children {}
QTreeWidget::branch:closed:has-children
{
    min-width:12px;
	min-height:12px;
	max-width:12px;
	max-height:12px;
	image: url(:/img/plotwidget/triangle_close.png);
}

QTreeWidget::branch:open:has-children 
{
	min-width:12px;
	min-height:12px;
	max-width:12px;
	max-height:12px;
    image: url(:/img/plotwidget/triangle_open.png);
}

QTreeView::indicator:unchecked
{
	min-width:16px;
	min-height:16px;
	max-width:16px;
	max-height:16px;
	border-radius: 2px;
	border: 1px solid #FFFFFF;
	image:url(:/img/plotwidget/unchecked_normal.png);
}
QTreeView::indicator:unchecked:hover{image:url(:/img/plotwidget/unchecked_hover.png);}
QTreeView::indicator:unchecked:selected{image:url(:/img/plotwidget/unchecked_selected.png);}
QTreeView::indicator:unchecked:disabled{image:url(:/img/plotwidget/unchecked_disabled.png);}
                        
QTreeView::indicator:checked 
{
	min-width:16px;
	min-height:16px;
	max-width:16px;
	max-height:16px;
	border-radius: 2px;
	border: 1px solid #FFFFFF;
    image:url(:/img/plotwidget/checked_normal.png);
}  
QTreeView::indicator:checked:hover{image:url(:/img/plotwidget/checked_hover.png);}   
QTreeView::indicator:checked:selected{image:url(:/img/plotwidget/checked_selected.png);}     
QTreeView::indicator:checked:disabled{image:url(:/img/plotwidget/checked_disabled.png);}     

QTreeView::indicator:indeterminate 
{
	min-width:16px;
	min-height:16px;
	max-width:16px;
	max-height:16px;
	border-radius: 2px;
	border: 1px solid #FFFFFF;
    image:url(:/img/plotwidget/half_normal.png);
}
QTreeView::indicator:indeterminate:hover{image:url(:/img/plotwidget/half_hover.png);}
QTreeView::indicator:indeterminate:selected{image:url(:/img/plotwidget/half_selected.png);}
QTreeView::indicator:indeterminate:disabled{image:url(:/img/plotwidget/half_disabled.png);}

QScrollBar:vertical {
    background-color: transparent;
    width: 6px;
}
QScrollBar::handle:vertical {
    background-color: #53B5FF;
    border:none;
    border-radius: 3px;
    min-height:163px;
}
QScrollBar::add-line:vertical {       
    height: 0px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical {
    max-height: 0px;
    subcontrol-position: top;
    subcontrol-origin: margin;
}
QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical
{
	background:transparent; 
}

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值