QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Public Attributes | List of all members
QgsLayerTreeModel::LayerLegendTree Struct Reference

Structure that stores tree representation of map layer's legend. More...

#include <qgslayertreemodel.h>

Public Attributes

QMap< QgsLayerTreeModelLegendNode *, QList< QgsLayerTreeModelLegendNode * > > children
 List of children for each active node. Top-level nodes are under nullptr key. Pointers are not owned.
 
QMap< QgsLayerTreeModelLegendNode *, QgsLayerTreeModelLegendNode * > parents
 Pointer to parent for each active node. Top-level nodes have nullptr parent. Pointers are not owned.
 

Detailed Description

Structure that stores tree representation of map layer's legend.

This structure is used only when the following requirements are met:

The tree structure (parents and children of each node) is extracted by analyzing nodes' parent rules.

Note
not available in Python bindings

Definition at line 466 of file qgslayertreemodel.h.

Member Data Documentation

◆ children

QMap<QgsLayerTreeModelLegendNode *, QList<QgsLayerTreeModelLegendNode *> > QgsLayerTreeModel::LayerLegendTree::children

List of children for each active node. Top-level nodes are under nullptr key. Pointers are not owned.

Definition at line 471 of file qgslayertreemodel.h.

◆ parents

QMap<QgsLayerTreeModelLegendNode *, QgsLayerTreeModelLegendNode *> QgsLayerTreeModel::LayerLegendTree::parents

Pointer to parent for each active node. Top-level nodes have nullptr parent. Pointers are not owned.

Definition at line 469 of file qgslayertreemodel.h.


The documentation for this struct was generated from the following file: