How to make expandable sign in QTreeWidget always visible even when item doest have any subitems? And how to draw something else instead of default sign?
Thanks in advance, Serge
QTreeWidgetItems have the property childIndicatorPolicy. The allowed values are:
You want the first one.
theItem.setChildIndicatorPolicy(QTreeWidgetItem.ShowIndicator)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With