QTreeView: specify distance between branch image and text/decoration
Unsolved
General and Desktop
-
Hello! Long time listener, first time caller.
I've been trying to figure out how to specify the distance between a QTreeView's expand/collapse arrow and the text and/or decoration to its right -- but I haven't been able to figure out the right combination of CSS and code (in my model) to do so.
|-here-| V parent_item child_item1 child_item2
Any pointers would be greatly appreciated!
-
@hoafaloaf
This is probably not it, but have you checkedindentation
and/or have you read through e.g. https://forum.qt.io/topic/82636/branch-in-qtreeview or https://forum.qt.io/topic/101765/how-to-change-qtreeview-expand-or-collapse-icon-position ?