Class: QgsRasterRendererWidget

class qgis.gui.QgsRasterRendererWidget(layer: QgsRasterLayer, extent: QgsRectangle)

Bases: PyQt5.QtWidgets.QWidget

Parameters
actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
doComputations(self)

Load programmatically with current values

dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
mapCanvas(self)QgsMapCanvas

Returns the map canvas associated with the widget.

See also

setMapCanvas()

New in version 2.16.

Return type

QgsMapCanvas

max(self, index: int = 0) → str
Parameters

index (int = 0) –

Return type

str

metric()
min(self, index: int = 0) → str
Parameters

index (int = 0) –

Return type

str

minMaxWidget(self)QgsRasterMinMaxWidget

Returns min/max widget when it exists.

Return type

QgsRasterMinMaxWidget

mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
rasterLayer(self)QgsRasterLayer
Return type

QgsRasterLayer

receivers()
renderer(self)QgsRasterRenderer
Return type

QgsRasterRenderer

resizeEvent()
selectedBand(self, index: int = 0) → int
Parameters

index (int = 0) –

Return type

int

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

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

Parameters

canvas (QgsMapCanvas) – map canvas

See also

mapCanvas()

New in version 2.16.

setMax(self, value: str, index: int = 0)
Parameters
  • value (str) –

  • index (int = 0) –

setMin(self, value: str, index: int = 0)
Parameters
  • value (str) –

  • index (int = 0) –

setRasterLayer(self, layer: QgsRasterLayer)
Parameters

layer (QgsRasterLayer) –

setStdDev(self, value: str)
Parameters

value (str) –

sharedPainter()
showEvent()
stdDev(self) → str
Return type

str

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

Emitted when something on the widget has changed. All widgets will fire this event to notify of an internal change. [signal]