TreeView for Qt Quick
Provides a control that can be used to show a tree model in QtQuick.
Obs! Note that since Qt 6.3, this component is available for all Qt users under both open source and commercial licenses. The version in the Marketplace is targeted at Qt 5 users only.
TreeView provides a QML type to display data from any QAbstractItemModel. It extends TableView with expandable and collapsable nodes, which can be used in either a list or table mode. The former lets the user navigate up and down like in the list, but the left and right arrow keys will expand or collapse the nodes. The latter mode lets the user navigate between the columns as well using the left and right arrow keys.
Several convenience methods are available to map the model index with the item index in the view. Custom delegates can be created, but it is possible to customize the view delegate with several style hints. Row background and foreground colors, alternate background colors, text font, and collapsed/expanded icons can be easily changed without writing a new delegate.