PyQt5:How do I trigger a signal in the custom node check box in the QTreeWidget

122 Views Asked by At

I expect a signal to be triggered when a node is checked, but I can't find one from the official documentation. It doesn't look like QTreeWidget provides this signal for the node's checkbox alone.

I am using the itemChanged signal, but it does not meet my other requirement. The itemChanged signal will trigger many times for no reason, but I only expect the signal to trigger once when it is checked.

0

There are 0 best solutions below