Class: QgsVectorLabelLegendNode

class qgis.core.QgsVectorLabelLegendNode

Bases: QgsLayerTreeModelLegendNode

Produces legend node for a labeling text symbol

New in version 3.20.

QgsVectorLabelLegendNode(nodeLayer: QgsLayerTreeLayer, labelSettings: QgsPalLayerSettings, parent: QObject = None) QgsVectorLabelLegendNode

Parameters
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

data Returns data associated with the item

Parameters

role (int) – the data role

Return type

Any

Returns

variant containing the data for the role

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

QSizeF

Returns

size of the item

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

Dict[str, QJsonValue]

Returns

the json object

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