Class: QgsRendererRasterPropertiesWidget¶

QgsRendererRasterPropertiesWidget¶
Class Hierarchy¶
Base classes¶
A panel widget that can be shown in the map style dock |
|
Base class for any widget that can be shown as a inline panel |
|
Methods
Apply the changes from the dialog to the layer. |
|
Returns the active render widget. |
|
called when user changes renderer type |
|
Sets the map canvas associated with the dialog. |
|
Sync the widget to the given layer. |
- class qgis.gui.QgsRendererRasterPropertiesWidget(layer: QgsMapLayer | None, canvas: QgsMapCanvas | None, parent: QWidget | None = None)[source]¶
Bases:
QgsMapLayerConfigWidget
- currentRenderWidget(self) QgsRasterRendererWidget | None [source]¶
Returns the active render widget. Can be
None
.- Return type:
Optional[QgsRasterRendererWidget]
- 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