I have a QTreeWidget with multiple top-level QTreeWidgetItems. One of the columns in my QTreeWidgetItem is a boolean value. These QTreeWidgetItems can have children. If the item has children, the user cannot check/uncheck the box for the parent, as they can only choose if the child is checked. The parent then checks itself if any of its children is checked. If any child is checked, the parent checks itself. If all the children are unchecked, then the parent unchecks itself. However, what I would like the parent to do is instead of showing an unchecked checkbox, just show an empty cell.
When I create the QTreeWidgetItem initially, if it's not checked, I just set it's text to "" and don't set a check state. Is there anyway to get it back to this state without deleting and re-creating the whole QTreeWidgetItem?
Thanks!
Todd
Bookmarks