
TreeModel models the data of a tree widget.
Slots
- children
-
virtual Obj[] children(Obj node)
Get the children of the specified node. If no children return null or the empty list. Default returns null.
- image
-
Get the image to display for specified node or null.
- roots
-
abstract Obj[] roots()
Get root nodes.
- text
-
Get the text to display for specified node. Default is
node.toStr
.