0

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.

  • The `itemChanged` signal is emitted whenever the value of *any* role of *any* item has changed, which could happen for many reasons (and even recursively for 3d/tree models) under certain circumstances. Unfortunately, your question is too vague to provide a valid answer, so please provide a [mre], as a screenshot of the documentation is completely useless. – musicamante Oct 09 '22 at 03:29
  • Maybe I'm asking the wrong question, and I need to rethink. Thank you for pointing out my problem. – elephant111 Oct 09 '22 at 07:26

0 Answers0