0
votes

I'm developing an Qt application and I was displaying some data in QTreeWidget widget, but I needed it to adjust it to fit it's content so I changed the QTreeWidget to a custom widget from this post : How to make an expandable/collapsable section widget in QT

However I really don't like the arrow icon

enter image description here

And I would like to have the previous icon from QTreeWidget

enter image description here

Is that some standard default icon I could easily switch to? If so where do I found it?

1
try to add image via stylesheet QTreeWidget::branch:open { image: url(branch-open.png); }Simon

1 Answers

0
votes

Add a branch image to your qss file

QTreeWidget::branch:open { image: url(branch-open.png);}

see complete example here