Class: QgsElevationControllerWidget

class qgis.gui.QgsElevationControllerWidget

Bases: PyQt5.QtWidgets.QWidget

A widget for configuring vertical elevation slicing behavior for maps.

New in version 3.38.

QgsElevationControllerWidget(parent: QWidget = None) Constructor for QgsElevationControllerWidget, with the specified parent widget.

Methods

actionEvent

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

fixedRangeSize

Returns the fixed range size, or -1 if no fixed size is set.

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

menu

Returns a reference to the widget's configuration menu, which can be used to add actions to the menu.

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

range

Returns the current visible range from the widget.

rangeLimits

Returns the limits of the elevation range which can be selected by the widget.

receivers

resizeEvent

param event:

sender

senderSignalIndex

setFixedRangeSize

Sets the fixed range size.

setRange

Sets the current visible range for the widget.

setRangeLimits

Sets the limits of the elevation range which can be selected by the widget.

sharedPainter

showEvent

slider

Returns a reference to the slider component of the widget.

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

Signals

rangeChanged

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

actionEvent(self, QActionEvent)
changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: PyQt5.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
event(self, QEvent) bool
fixedRangeSize(self) float

Returns the fixed range size, or -1 if no fixed size is set.

A fixed size forces the selected elevation range to have a matching difference between the upper and lower elevation.

Return type:

float

focusInEvent(self, QFocusEvent)
focusNextChild(self) bool
focusNextPrevChild(self, bool) bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self) bool
hideEvent(self, QHideEvent)
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod) bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
leaveEvent(self, QEvent)
menu(self) QMenu

Returns a reference to the widget’s configuration menu, which can be used to add actions to the menu.

Return type:

QMenu

metric(self, QPaintDevice.PaintDeviceMetric) int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], PyQt5.sip.voidptr) Tuple[bool, int]
paintEvent(self, QPaintEvent)
range(self) QgsDoubleRange

Returns the current visible range from the widget.

See also

setRange()

See also

rangeChanged()

Return type:

QgsDoubleRange

rangeChanged

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...) –

  • revision (int = ...) –

  • arguments (Sequence = ...) –

Return type:

PYQT_SIGNAL

rangeLimits(self) QgsDoubleRange

Returns the limits of the elevation range which can be selected by the widget.

See also

rangeLimits()

Return type:

QgsDoubleRange

receivers(self, PYQT_SIGNAL) int
resizeEvent(self, event: QResizeEvent)
Parameters:

event (QResizeEvent) –

sender(self) QObject
senderSignalIndex(self) int
setFixedRangeSize(self, size: float)

Sets the fixed range size. Set to -1 if no fixed size is desired.

A fixed size forces the selected elevation range to have a matching difference between the upper and lower elevation.

See also

fixedRangeSize()

Parameters:

size (float) –

setRange(self, range: QgsDoubleRange)

Sets the current visible range for the widget.

See also

range()

See also

rangeChanged()

Parameters:

range (QgsDoubleRange) –

setRangeLimits(self, limits: QgsDoubleRange)

Sets the limits of the elevation range which can be selected by the widget.

See also

rangeLimits()

Parameters:

limits (QgsDoubleRange) –

sharedPainter(self) QPainter
showEvent(self, QShowEvent)
slider(self) QgsRangeSlider

Returns a reference to the slider component of the widget.

Return type:

QgsRangeSlider

tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)