QTreeView
QTreeView is a Qt widget that presents data in a hierarchical tree structure. It is part of the Qt Widgets module and implements the view side of Qt's Model/View architecture. A QTreeView renders items provided by a model that implements QAbstractItemModel, with data organized in a tree across one or more columns. The model supplies the data and the hierarchical relationships, while the view handles presentation, selection, and editing.
The view is designed to work with any suitable model, such as QStandardItemModel or a custom subclass
Editing, rendering, and interaction are handled through item delegates and the model/view framework. Editing can be
Sorting can be enabled with setSortingEnabled(bool); sorting is typically implemented by the model or with a
Typical usage involves creating a model (for example, QStandardItemModel), populating hierarchical items, attaching it with setModel,