[SOLVED] QTreeWidget spacing
-
In QListWidget has a space before items.
!http://i5.minus.com/jb0zaDZipeWmwH.png(http://i5.minus.com/jb0zaDZipeWmwH.png)!
How to remove this space?
-
This space is there for a reason. It's reserved for the open/close handle icon when you have sub-items in your tree. If you want a flat structure use QListWidget instead.
If for some reason you still want to remove it you can use setIndentation(0). -
[quote author="Krzysztof Kawa" date="1357925838"]This space is there for a reason. It's reserved for the open/close handle icon when you have sub-items in your tree. If you want a flat structure use QListWidget instead.
If for some reason you still want to remove it you can use setIndentation(0).[/quote]Thanks.