Class: QgsScaleMethodWidget

A widget which lets the user select from scale calculation methods.

Added in version 3.44.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsScaleMethodWidget

Base classes

QWidget

QObject

QPaintDevice

Methods

scaleMethod

Returns the selected scale method.

setScaleMethod

Sets the selected blend mode.

Signals

methodChanged

Emitted when the selected method is changed.

class qgis.gui.QgsScaleMethodWidget[source]

Bases: QWidget

__init__(parent: QWidget | None = None)

Constructor for QgsScaleMethodWidget, with the specified parent widget

Parameters:

parent (Optional[QWidget] = None)

signal methodChanged[source]

Emitted when the selected method is changed.

scaleMethod(self) Qgis.ScaleCalculationMethod[source]

Returns the selected scale method.

See also

setScaleMethod()

See also

methodChanged()

Return type:

Qgis.ScaleCalculationMethod

setScaleMethod(self, method: Qgis.ScaleCalculationMethod)[source]

Sets the selected blend mode.

See also

scaleMethod()

See also

methodChanged()

Parameters:

method (Qgis.ScaleCalculationMethod)