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 ...
QTreeView
setRootIsDecorated
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.
none.png
treeView->setStyleSheet( "QTreeView::branch { border-image: url(none.png); }" );
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).
self.setRootIsDecorated(False)
polocy, , . - , . info-share.