QgsOpacityWidget class
A widget for setting an opacity value.
Contents
Constructors, destructors, conversion operators
- QgsOpacityWidget(QWidget* parent = nullptr) explicit
- Constructor for QgsOpacityWidget.
Public functions
- auto opacity() const -> double
- Returns the current opacity selected in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).
Signals
- void opacityChanged(double opacity)
- Emitted when the opacity is changed in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).
Public slots
- void setOpacity(double opacity)
- Sets the current opacity to show in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).
Function documentation
double QgsOpacityWidget:: opacity() const
Returns the current opacity selected in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).
void QgsOpacityWidget:: opacityChanged(double opacity) signal
Emitted when the opacity is changed in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).
void QgsOpacityWidget:: setOpacity(double opacity) public slot
Sets the current opacity to show in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).