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: Enums
Methods
Returns a curve representing the current curve from the widget.
Returns the maximum expected value for the range of values shown in the histogram.
Returns the minimum expected value for the range of values shown in the histogram.
Sets the
curve
to show in the widget.Sets a
layer
andexpression
source for values to show in a histogram behind the curve.Sets the maximum expected value for the range of values shown in the histogram.
Sets the minimum expected value for the range of values shown in the histogram.
Signals
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
-
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.
See also
See also
-
metric
()¶
-
minHistogramValueRange
(self) → float¶ Returns the minimum expected value for the range of values shown in the histogram.
See also
See also
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
resizeEvent
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setHistogramSource
(self, layer: QgsVectorLayer, expression: str)¶ Sets a
layer
andexpression
source for values to show in a histogram behind the curve. The histogram is generated in a background thread to keep the widget responsive.See also
See also
-
setMaxHistogramValueRange
(self, maxValueRange: float)¶ Sets the maximum expected value for the range of values shown in the histogram.
See also
See also
-
setMinHistogramValueRange
(self, minValueRange: float)¶ Sets the minimum expected value for the range of values shown in the histogram.
See also
See also
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-