The Qt Company

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. 

Examples:

By clicking button above, I agree Marketplace user terms and conditions and EULA

Details
Version:
1.0
Publisher:
The Qt Company
Contact:
marketplace@qt.io
Copyright:
The Qt Company
License:
Qt Marketplace LA
Included in Qt Commercial:
-
Also available:
GPLv3
Platforms:
All platforms supported by Qt
Supported Qt versions:
5.15
Support:
Component support available for Qt commercial license users only
Bug URL:
https://bugreports.qt.io/browse/QTEXT
Source repository:
https://code.qt.io/cgit/qt-extensions/qttreeview.git
Dependencies:
Qt Quick