Class: QgsSimpleLegendNode

class qgis.core.QgsSimpleLegendNode(nodeLayer: QgsLayerTreeLayer, label: str, icon: QIcon = QIcon(), parent: QObject = None, key: str = '')

Bases: qgis._core.QgsLayerTreeModelLegendNode

Constructor for QgsSimpleLegendNode.

Parameters:
  • nodeLayer – layer node
  • label – label
  • icon – icon
  • parent – attach a parent QObject to the legend node.
  • key – the rule key

Implementation of legend node interface for displaying arbitrary label with icon.

childEvent()
connectNotify()
createTemporaryRenderContext()
customEvent()
data(self, role: int) → Any
disconnectNotify()
isSignalConnected()
receivers()
sender()
senderSignalIndex()
timerEvent()