Class: QgsRasterHistogramWidget

class qgis.gui.QgsRasterHistogramWidget(layer: QgsRasterLayer, parent: QWidget = None)

Bases: QgsMapLayerConfigWidget

Constructor for QgsRasterHistogramWidget, for the specified raster layer.

Histogram widget

Parameters
actionEvent()
apply(self)
changeEvent()
childEvent()
closeEvent()
computeHistogram(self, forceComputeFlag: bool) → bool

Compute the histogram on demand.

Parameters

forceComputeFlag (bool) –

Return type

bool

connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
histoAction(self, actionName: str, actionFlag: bool = True)

Apply a histoActionTriggered() event.

Parameters
  • actionName (str) –

  • actionFlag (bool = True) –

histoSaveAsImage(self, filename: str, width: int = 600, height: int = 600, quality: int = -1) → bool

Save the histogram as an image to disk

Parameters
  • filename (str) –

  • width (int = 600) –

  • height (int = 600) –

  • quality (int = -1) –

Return type

bool

initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
refreshHistogram(self)

slot executed when user wishes to refresh raster histogramwidget

resizeEvent()
sender()
senderSignalIndex()
setActive(self, activeFlag: bool)

Activate the histogram widget

Parameters

activeFlag (bool) –

setRendererWidget(self, name: str, rendererWidget: QgsRasterRendererWidget = None)

Sets the renderer widget (or just its name if there is no widget)

Parameters
setSelectedBand(self, index: int)

Apply a histoActionTriggered() event.

Parameters

index (int) –

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()