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.

Parameters
  • parent (QWidget = None) –

  • curve

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()

Return type

QgsCurveTransform

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

event (QKeyEvent) –

keyReleaseEvent()
leaveEvent()
maxHistogramValueRange(self) → float

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

Return type

float

metric()
minHistogramValueRange(self) → float

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

Return type

float

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()

Parameters

curve (QgsCurveTransform) –

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.

Parameters
setMaxHistogramValueRange(self, maxValueRange: float)

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

Parameters

maxValueRange (float) –

setMinHistogramValueRange(self, minValueRange: float)

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

Parameters

minValueRange (float) –

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