I want to have my QTreeView
always expanded all of the items. In that case, all expand button / decoration are unnecessary and I want get rid of them. How can I delete all of them? setRootIsDecorated
will only delete that buttons on first level...
This is what I've done in the past for this problem, it's a bit of a hack but it's worked pretty well. In this case none.png
doesn't exist.
treeView->setStyleSheet( "QTreeView::branch { border-image: url(none.png); }" );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With