Class: QgsRendererRasterPropertiesWidget

QgsRendererRasterPropertiesWidget

QgsRendererRasterPropertiesWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsRendererRasterPropertiesWidget

Base classes

QgsMapLayerConfigWidget

A panel widget that can be shown in the map style dock

QgsPanelWidget

Base class for any widget that can be shown as a inline panel

QWidget

QObject

QPaintDevice

class qgis.gui.QgsRendererRasterPropertiesWidget(layer: QgsMapLayer | None, canvas: QgsMapCanvas | None, parent: QWidget | None = None)[source]

Bases: QgsMapLayerConfigWidget

apply(self)[source]

Apply the changes from the dialog to the layer.

currentRenderWidget(self) QgsRasterRendererWidget | None[source]

Returns the active render widget. Can be None.

Return type:

Optional[QgsRasterRendererWidget]

rendererChanged(self)[source]

called when user changes renderer type

setMapCanvas(self, canvas: QgsMapCanvas | None)[source]

Sets the map canvas associated with the dialog. This allows the widget to retrieve the current map scale and other properties from the canvas.

Parameters:

canvas (Optional[QgsMapCanvas]) – map canvas

syncToLayer(self, layer: QgsRasterLayer | None)[source]

Sync the widget to the given layer.

Parameters:

layer (Optional[QgsRasterLayer]) – The layer to use for the widget