Class: QgsDataDefinedSizeLegendNode

class qgis.core.QgsDataDefinedSizeLegendNode(nodeLayer: QgsLayerTreeLayer, settings: QgsDataDefinedSizeLegend, parent: QObject = None)

Bases: QgsLayerTreeModelLegendNode

Construct the node using QgsDataDefinedSizeLegend as definition of the node’s appearance

Produces legend node with a marker symbol

New in version 3.0.

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
Parameters

role (int) –

Return type

Any

disconnectNotify(self, QMetaMethod)
draw(self, settings: QgsLegendSettings, ctx: QgsLayerTreeModelLegendNode.ItemContext)QgsLayerTreeModelLegendNode.ItemMetrics
Parameters
Return type

QgsLayerTreeModelLegendNode.ItemMetrics

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