TreeViewDelegate QML Type
A styled tree view item delegate. More...
| Import Statement: | import FluentUI 1.0 |
Properties
- current : bool
- depth : int
- expanded : bool
- font : font
- hasChildren : bool
- highlighted : bool
- text : string
Detailed Description
TreeViewDelegate provides the visual representation for items in a TreeView. It displays indentation based on the item depth, expand/collapse indicators for items with children, and visual states for selection and highlighting.
Property Documentation
current : bool
Whether the item is the current (active) item in the tree view.
depth : int
The nesting depth of the item in the tree hierarchy. Root items have a depth of 0.
expanded : bool
Whether the item is currently expanded to show its children.
font : font
The font used for the item text.
hasChildren : bool
Whether the item has child items and can be expanded.
highlighted : bool
Whether the item is highlighted (focused or selected by the user).
text : string
The text displayed for the tree view item.