Class: QgsPercentageWidget¶
A widget for setting a percentage value.
Added in version 3.36.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Constructor
Methods
Sets the current value to show in the widget, where value is a factor which ranges from 0.0 to 1.0. |
|
Returns the current percentage selected in the widget, as a factor from 0.0 to 1.0. |
Signals
Emitted when the value is changed in the widget, where value is a factor which ranges from 0.0 to 1.0. |
- class qgis.gui.QgsPercentageWidget[source]¶
Bases:
QWidget- __init__(parent: QWidget | None = None)¶
Constructor for QgsPercentageWidget.
- Parameters:
parent (Optional[QWidget] = None)
- setValue(self, value: float)[source]¶
Sets the current
valueto show in the widget, wherevalueis a factor which ranges from 0.0 to 1.0.See also
See also
- Parameters:
value (float)
- value(self) float[source]¶
Returns the current percentage selected in the widget, as a factor from 0.0 to 1.0.
See also
See also
- Return type:
float