QgsLegendModel class

Item model implementation based on layer tree model for layout legend.

Overrides some functionality of QgsLayerTreeModel to better fit the needs of layout legends.

Base classes

class QgsLayerTreeModel
The QgsLayerTreeModel class is model implementation for Qt item views framework.

Constructors, destructors, conversion operators

QgsLegendModel(QgsLayerTree* rootNode, QObject* parent = nullptr)
Construct the model based on the given layer tree.