Skip to content

Fix for setting selected and expanded state of QTreeWidgetItems - #139

Merged
berendkleinhaneveld merged 2 commits into
masterfrom
fix-selected-and-expanded-attrs
Dec 1, 2025
Merged

Fix for setting selected and expanded state of QTreeWidgetItems#139
berendkleinhaneveld merged 2 commits into
masterfrom
fix-selected-and-expanded-attrs

Conversation

@berendkleinhaneveld

Copy link
Copy Markdown
Collaborator

The parent property is often empty because Collagraph initializes objects without any knowledge about the tree / parents, and the parent property is read-only and apparently not updated when a QTreeWidgetItem is inserted into the hierarchy. The treeWidget property is a better indicator of the mounted state of an item.

The parent property is often empty because Collagraph initializes
objects without any knowledge about the tree / parents, and the
parent property is read-only and apparently not updated when a
QTreeWidgetItem is inserted into the hierarchy. The treeWidget
property is a better indicator of the mounted state of an item.
@berendkleinhaneveld
berendkleinhaneveld merged commit 811d77f into master Dec 1, 2025
8 checks passed
@berendkleinhaneveld
berendkleinhaneveld deleted the fix-selected-and-expanded-attrs branch December 1, 2025 09:08
berendkleinhaneveld added a commit that referenced this pull request Dec 1, 2025
* Fix for setting selected and expanded state of QTreeWidgetItems (#139)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant