Note: For performance reasons, created delegates can be recycled across multiple table rows. This implies that when you make use of implicit properties such as styleData.row or model, these values can change after the delegate has been constructed. This means that you should not assume that content is fixed when Component.onCompleted is called, but instead rely on bindings to such properties.

model : QAbstractItemModel

This property holds the model providing data for the tree view.

The model provides the set of data that is displayed by the view. The TreeView accept models derived from the QAbstractItemModel class.

rootIndex : QModelIndex

The model index of the root item in the tree view. The root item is the parent item to the view's top-level items. Only items descending from the root item will be visible in the view.

Its default value is an invalid QModelIndex, which means the whole model data is shown by the tree view (assigning undefined to this proprety resets it to its default value.)