Unsolved Adjusting Indenting for QTreeView items
-
Currently items in QTreeView appear as follows - in terms of indentation: Note -> = space and + = Expand/Collapse icon
-> <icon><text> + Group Name -----><icon><text>
How can I decrease indenting? e.g.
<icon><text> + Parent Name --><icon><text>
Note that the Item without a Parent still is indented but not as much as previously
-
You can try
void QTreeView::setIndentation(int i)
-
@Bonnie Already tried it, but it sets identation for all items and end result isn't visually correct - or what I'm trying to achieve.
-
@Taytoo
Hi
Did you try a Delegate to paint it the way you like ?
https://stackoverflow.com/questions/55969916/how-to-remove-qtreeview-indentation