QTreeWidget expand button style
-
Hello,
I'm using a QTreeWidget to model a decision tree.
It is looking like this: http://i.imgur.com/4ZbMvBg.png
I wish it was looking like this: http://i.imgur.com/xeDugqK.pngIs there any way to modify the stylesheet or something to make my widget as I want it to look like?
Thanks a lot for your help! -
Check following Link :
"Customize QTreeView":http://qt-project.org/doc/qt-4.7/stylesheet-examples.html#id-80435fe9-2622-41f4-bc12-2b683117521cScroll down there to see stylesheet properties
@QTreeView::branch:closed:has-children:has-siblings {
border-image: none;
image: url(branch-closed.png);
}QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings {
border-image: none;
image: url(branch-open.png);
}@Just changes the 2 images as per your image requirements.