Class: QgsOpacityWidget¶
A widget for setting an opacity value.
Class Hierarchy¶
Base classes¶
Methods
Returns the current opacity selected in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque). |
|
Sets the current opacity to show in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque). |
Signals
Emitted when the opacity is changed in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque). |
- class qgis.gui.QgsOpacityWidget[source]¶
Bases:
QWidget
- __init__(parent: QWidget | None = None)
Constructor for QgsOpacityWidget.
- Parameters:
parent (Optional[QWidget] = None)
- opacity(self) float [source]¶
Returns the current opacity selected in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).
See also
See also
- Return type:
float
- signal opacityChanged(opacity: float)[source]¶
Emitted when the
opacity
is changed in the widget, whereopacity
ranges from 0.0 (transparent) to 1.0 (opaque).See also
See also
- Parameters:
opacity (float)