Class: QgsRendererRasterPropertiesWidget

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

Bases: QgsMapLayerConfigWidget

A widget to hold the renderer properties for a raster layer.

Parameters
actionEvent()
apply(self)

Apply the changes from the dialog to the layer.

changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
currentRenderWidget(self) → QgsRasterRendererWidget

Returns the active render widget. Can be None.

Return type

QgsRasterRendererWidget

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
rendererChanged(self)

called when user changes renderer type

resizeEvent()
sender()
senderSignalIndex()
setMapCanvas(self, canvas: QgsMapCanvas)

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 (QgsMapCanvas) – map canvas

New in version 2.12.

sharedPainter()
showEvent()
syncToLayer(self, layer: QgsRasterLayer)

Sync the widget to the given layer.

Parameters

layer (QgsRasterLayer) – The layer to use for the widget

tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()