Hello,

I'm trying to expand and collapse the tree when the QtreeWidget is checked or unchecked respectively.

I've tried to implement in two ways:

1. Trying to see what the checkState is and then setExpanded true or fales. Which dosen't work.
2. I tried to add the click signal on the treewidget , but as it's a treeWidget connect only takes QtObject and not QtTreeWidget.

Any help would be appreciated.

Thank you.