Class: QgsWmsLegendNode

class qgis.core.QgsWmsLegendNode(nodeLayer: QgsLayerTreeLayer, parent: QObject = None)

Bases: QgsLayerTreeModelLegendNode

Constructor for QgsWmsLegendNode.

Parameters
  • nodeLayer (QgsLayerTreeLayer) – layer node

  • parent (QObject = None) – attach a parent QObject to the legend node.

Implementation of legend node interface for displaying WMS legend entries

Methods

childEvent

connectNotify

createTemporaryRenderContext

Returns a temporary context or None if legendMapViewData are not valid

customEvent

data

param role

disconnectNotify

drawSymbol

param settings

exportSymbolToJson

param settings

invalidateMapBasedData

isSignalConnected

receivers

sender

senderSignalIndex

timerEvent

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
createTemporaryRenderContext(self)QgsRenderContext

Returns a temporary context or None if legendMapViewData are not valid

customEvent(self, QEvent)
data(self, role: int)Any
Parameters

role (int) –

Return type

Any

disconnectNotify(self, QMetaMethod)
drawSymbol(self, settings: QgsLegendSettings, ctx: QgsLayerTreeModelLegendNode.ItemContext, itemHeight: float)QSizeF
Parameters
Return type

QSizeF

exportSymbolToJson(self, settings: QgsLegendSettings, context: QgsRenderContext)Dict[str, QJsonValue]
Parameters
Return type

Dict[str, QJsonValue]

invalidateMapBasedData(self)
isSignalConnected(self, QMetaMethod)bool
receivers(self, PYQT_SIGNAL)int
sender(self)QObject
senderSignalIndex(self)int
timerEvent(self, QTimerEvent)