QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Slots | Signals | Public Member Functions | Properties | List of all members
QgsOpacityWidget Class Reference

A widget for setting an opacity value. More...

#include <qgsopacitywidget.h>

Inheritance diagram for QgsOpacityWidget:
Inheritance graph
[legend]

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). More...
 

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). More...
 

Public Member Functions

 QgsOpacityWidget (QWidget *parent=nullptr)
 Constructor for QgsOpacityWidget. More...
 
double opacity () const
 Returns the current opacity selected in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque). More...
 

Properties

double opacity
 

Detailed Description

A widget for setting an opacity value.

Since
QGIS 3.0

Definition at line 32 of file qgsopacitywidget.h.

Constructor & Destructor Documentation

◆ QgsOpacityWidget()

QgsOpacityWidget::QgsOpacityWidget ( QWidget *  parent = nullptr)
explicit

Constructor for QgsOpacityWidget.

Definition at line 22 of file qgsopacitywidget.cpp.

Member Function Documentation

◆ opacity()

double QgsOpacityWidget::opacity ( ) const

Returns the current opacity selected in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).

See also
setOpacity()
opacityChanged()

Definition at line 56 of file qgsopacitywidget.cpp.

◆ opacityChanged

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).

See also
setOpacity()
opacity()

◆ setOpacity

void QgsOpacityWidget::setOpacity ( double  opacity)
slot

Sets the current opacity to show in the widget, where opacity ranges from 0.0 (transparent) to 1.0 (opaque).

See also
opacity()
opacityChanged()

Definition at line 61 of file qgsopacitywidget.cpp.

Property Documentation

◆ opacity

double QgsOpacityWidget::opacity
readwrite

Definition at line 32 of file qgsopacitywidget.h.


The documentation for this class was generated from the following files: