Class: QgsDataDefinedSizeLegendNode

class qgis.core.QgsDataDefinedSizeLegendNode

Bases: QgsLayerTreeModelLegendNode

Produces legend node with a marker symbol

New in version 3.0.

QgsDataDefinedSizeLegendNode(nodeLayer: QgsLayerTreeLayer, settings: QgsDataDefinedSizeLegend, parent: QObject = None) Construct the node using QgsDataDefinedSizeLegend as definition of the node’s appearance

Methods

childEvent

connectNotify

createTemporaryRenderContext

Returns a temporary context or None if legendMapViewData are not valid

customEvent

data

param role

disconnectNotify

draw

param settings

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)
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)