QTreeView removes a skin / extension element for all elements

I want mine to QTreeViewalways expand all the elements. In this case, all the extension / decoration buttons are not needed, and I want to get rid of them. How to remove all of them? setRootIsDecoratedwill remove only these buttons on the first level ...

+5
source share
2 answers

This is what I did in the past for this problem, it’s a little hack, but it worked very well. In this case none.pngdoes not exist.

treeView->setStyleSheet( "QTreeView::branch {  border-image: url(none.png); }" );
+13
source

See https://forum.qt.io/topic/4767/how-to-get-rid-of-expande-collapse-qtreewidgetitememindicator

It saved me from the upper levels for me self.setRootIsDecorated(False).

polocy, , . - , . info-share.

+2