1272
2067
7958
认证用户组
使用道具 举报
隐藏左侧的小箭头
rootIsDecorated : bool
treeView.setRootIsDecorated(False)
或者
treeView.setStyleSheet( "QTreeView::branch {image:none;}" )
设置item不同状态下显示背景色的代码,设置方法同上: 源码中设置:
treeWidget->setStyleSheet( "QTreeView::item:hover{background-color:rgb(0,255,0,50)}" "QTreeView::item:selected{background-color:rgb(255,0,0,100)}" ); 在样式设置界面,添加如下两句: QTreeView::item:hover{background-color:rgb(0,255,0,50)} QTreeView::item:selected{background-color:rgb(255,0,0,100)}
本版积分规则 发表回复 回帖后跳转到最后一页
|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )
GMT+8, 2024-11-23 03:35 , Processed in 0.059806 second(s), 18 queries .
Powered by Discuz! X3
© 2001-2013 Comsenz Inc.