Class: QgsCurveEditorWidget

class qgis.gui.QgsCurveEditorWidget(parent: QWidget = None, curve: QgsCurveTransform = QgsCurveTransform())

Bases: PyQt5.QtWidgets.QWidget

Constructor for QgsCurveEditorWidget.

A widget for manipulating QgsCurveTransform curves.

New in version 3.0: Methods

actionEvent
changeEvent
childEvent
closeEvent
connectNotify
contextMenuEvent
create
curve Returns a curve representing the current curve from the widget.
customEvent
destroy
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
enterEvent
event
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
leaveEvent
maxHistogramValueRange Returns the maximum expected value for the range of values shown in the histogram.
metric
minHistogramValueRange Returns the minimum expected value for the range of values shown in the histogram.
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
paintEvent
receivers
resizeEvent
sender
senderSignalIndex
setCurve Sets the curve to show in the widget.
setHistogramSource Sets a layer and expression source for values to show in a histogram behind the curve.
setMaxHistogramValueRange Sets the maximum expected value for the range of values shown in the histogram.
setMinHistogramValueRange Sets the minimum expected value for the range of values shown in the histogram.
sharedPainter
showEvent
tabletEvent
timerEvent
updateMicroFocus
wheelEvent

Signals

changed Emitted when the widget curve changes [signal]

Attributes

actionEvent()
changeEvent()
changed

Emitted when the widget curve changes [signal]

childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
curve(self) → QgsCurveTransform

Returns a curve representing the current curve from the widget.

See also

setCurve()

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent(self, event: QKeyEvent)
keyReleaseEvent()
leaveEvent()
maxHistogramValueRange(self) → float

Returns the maximum expected value for the range of values shown in the histogram.

metric()
minHistogramValueRange(self) → float

Returns the minimum expected value for the range of values shown in the histogram.

mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
setCurve(self, curve: QgsCurveTransform)

Sets the curve to show in the widget.

See also

curve()

setHistogramSource(self, layer: QgsVectorLayer, expression: str)

Sets a layer and expression source for values to show in a histogram behind the curve. The histogram is generated in a background thread to keep the widget responsive.

setMaxHistogramValueRange(self, maxValueRange: float)

Sets the maximum expected value for the range of values shown in the histogram.

setMinHistogramValueRange(self, minValueRange: float)

Sets the minimum expected value for the range of values shown in the histogram.

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