Class: QgsImageLegendNode

class qgis.core.QgsImageLegendNode(nodeLayer: QgsLayerTreeLayer, img: QImage, parent: QObject = None)

Bases: QgsLayerTreeModelLegendNode

Constructor for QgsImageLegendNode.

Parameters
  • nodeLayer (QgsLayerTreeLayer) – layer node

  • img (QImage) – the image

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

Implementation of legend node interface for displaying arbitrary raster image

childEvent()
connectNotify()
createTemporaryRenderContext()
customEvent()
data(self, role: int) → Any
Parameters

role (int) –

Return type

Any

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

QSizeF

exportSymbolToJson(self, settings: QgsLegendSettings, context: QgsRenderContext, json: Dict[str, Union[QJsonValue, QJsonValue.Type, Iterable[QJsonValue], bool, int, float, str]])
Parameters
isSignalConnected()
receivers()
sender()
senderSignalIndex()
timerEvent()