TreeNode QML Type
A single node in a tree data structure. More...
| Import Statement: | import FluentUI.impl 1.0 |
Properties
- depth : int
- expanded : bool
- nodeChildren : list
- nodeParent : TreeNode
- rowData : QVariantMap
Methods
- bool hasChildren()
Detailed Description
The TreeNode type represents a node within the hierarchical tree used by TreeDataGridModel. Each node holds its own data, tracks its depth and expansion state, and maintains references to its parent and child nodes.
Property Documentation
depth : int
This read-only property holds the depth of this node in the tree hierarchy, where the root level is 0.
expanded : bool
This read-only property indicates whether this node is currently expanded, showing its child nodes.
nodeChildren : list
This read-only property holds the list of child nodes.
nodeParent : TreeNode
This read-only property holds the parent node of this node, or null if this is a root node.
rowData : QVariantMap
This read-only property holds the data map associated with this tree node.
Method Documentation
bool hasChildren()
Returns true if this node has one or more child nodes.