16#ifndef QGSOPACITYWIDGET_H 
   17#define QGSOPACITYWIDGET_H 
   34    Q_PROPERTY( 
double opacity READ opacity WRITE setOpacity NOTIFY opacityChanged )
 
   48    double opacity() 
const;
 
   58    void setOpacity( 
double opacity );
 
   72    void spinChanged( 
double value );
 
   76    QSlider *mSlider = 
nullptr;
 
 
The QgsSpinBox is a spin box with a clear button that will set the value to the defined clear value.