Class: QgsImageLegendNode

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

Bases: qgis._core.QgsLayerTreeModelLegendNode

Constructor for QgsImageLegendNode.

Parameters:
  • nodeLayer – layer node
  • img – the image
  • parent – 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
disconnectNotify()
drawSymbol(self, settings: QgsLegendSettings, ctx: QgsLayerTreeModelLegendNode.ItemContext, itemHeight: float) → QSizeF
isSignalConnected()
receivers()
sender()
senderSignalIndex()
timerEvent()