Class: QgsImageLegendNode

class qgis.core.QgsImageLegendNode

Bases: QgsLayerTreeModelLegendNode

Implementation of legend node interface for displaying arbitrary raster image

New in version 2.6.

QgsImageLegendNode(nodeLayer: QgsLayerTreeLayer, img: QImage, parent: QObject = None) Constructor for QgsImageLegendNode.

Parameters
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
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]

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