1

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?

madasionka
  • 812
  • 2
  • 10
  • 29
  • try to add image via stylesheet `QTreeWidget::branch:open { image: url(branch-open.png); }` – Simon Nov 22 '17 at 13:50

1 Answers1

0

Add a branch image to your qss file

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

see complete example here

Simon
  • 1,522
  • 2
  • 12
  • 24