Subgroup: Raster

Class: QgsRasterHistogramWidget

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

Bases: qgis._gui.QgsMapLayerConfigWidget

Constructor for QgsRasterHistogramWidget, for the specified raster layer.

Histogram widget

Methods

actionEvent
apply
changeEvent
childEvent
closeEvent
computeHistogram Compute the histogram on demand.
connectNotify
contextMenuEvent
create
customEvent
destroy
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
enterEvent
event
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
histoAction Apply a histoActionTriggered() event.
histoSaveAsImage Save the histogram as an image to disk
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
leaveEvent
metric
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
paintEvent
receivers
refreshHistogram slot executed when user wishes to refresh raster histogramwidget
resizeEvent
sender
senderSignalIndex
setActive Activate the histogram widget
setRendererWidget Set the renderer widget (or just its name if there is no widget)
setSelectedBand Apply a histoActionTriggered() event.
sharedPainter
showEvent
tabletEvent
timerEvent
updateMicroFocus
wheelEvent

Signals

Attributes

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

Compute the histogram on demand.

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.

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

Save the histogram as an image to disk

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

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

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

setSelectedBand(self, index: int)

Apply a histoActionTriggered() event.

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