Qt 6.11 is out! See what's new in the release
blog
[SOLVED] QTreeWidget branch increasing size
General and Desktop
4
Posts
2
Posters
4.2k
Views
2
Watching
-
Hi
the qtreewidget shows a small arrow for expand/collapse
I can replace that
with border-image in a stylesheet
but how would I make it bigger?
Seems to be same size regardless of image size used.
Thanks -
Using
ui->treeWidget->setIndentation(64);One can controls the branch size to some degree.
Still looking for a stylesheet way of doing it.
-
Although you can't set a size of the branch directly you can manipulate it indirectly like this:
QTreeView::item { height: 100px; } /* manipulates item but influences the height of the branch too */ QTreeView { qproperty-indentation: 100; } /* offsets an item and so also widens the branch, note no unit (px) */ -
Although you can't set a size of the branch directly you can manipulate it indirectly like this:
QTreeView::item { height: 100px; } /* manipulates item but influences the height of the branch too */ QTreeView { qproperty-indentation: 100; } /* offsets an item and so also widens the branch, note no unit (px) */