|
QGIS API Documentation 4.1.0-Master (376402f9aeb)
|
A widget for setting a percentage value. More...
#include <qgspercentagewidget.h>

Public Slots | |
| void | setValue (double value) |
| Sets the current value to show in the widget, where value is a factor which ranges from 0.0 to 1.0. | |
Signals | |
| void | valueChanged (double value) |
| Emitted when the value is changed in the widget, where value is a factor which ranges from 0.0 to 1.0. | |
Public Member Functions | |
| QgsPercentageWidget (QWidget *parent=nullptr) | |
| Constructor for QgsPercentageWidget. | |
| QgsDoubleSpinBox * | spinBox () |
| Returns the spin box part of the widget. | |
| double | value () const |
| Returns the current percentage selected in the widget, as a factor from 0.0 to 1.0. | |
Properties | |
| double | value |
A widget for setting a percentage value.
Definition at line 33 of file qgspercentagewidget.h.
|
explicit |
Constructor for QgsPercentageWidget.
Definition at line 26 of file qgspercentagewidget.cpp.
|
slot |
Sets the current value to show in the widget, where value is a factor which ranges from 0.0 to 1.0.
Definition at line 72 of file qgspercentagewidget.cpp.
| QgsDoubleSpinBox * QgsPercentageWidget::spinBox | ( | ) |
Returns the spin box part of the widget.
Definition at line 67 of file qgspercentagewidget.cpp.
| double QgsPercentageWidget::value | ( | ) | const |
Returns the current percentage selected in the widget, as a factor from 0.0 to 1.0.
Definition at line 62 of file qgspercentagewidget.cpp.
|
signal |
Emitted when the value is changed in the widget, where value is a factor which ranges from 0.0 to 1.0.
|
readwrite |
Definition at line 36 of file qgspercentagewidget.h.