The FloatSlider class A QSlider subclass that allows working with floating point ranges and values.
More...
#include <FloatSlideBar.h>
|
| | FloatSlider (Qt::Orientation orientation, QWidget *parent=nullptr) |
| | Construct a new FloatSlider object.
|
| |
| void | setFloatRange (double min, double max) |
| | Set the floating point range for the slider.
|
| |
| void | setFloatValue (double val) |
| | Set the current floating point value.
|
| |
| double | floatValue () const |
| | Get the current floating point value.
|
| |
The FloatSlider class A QSlider subclass that allows working with floating point ranges and values.
◆ FloatSlider()
| FloatSlider::FloatSlider |
( |
Qt::Orientation |
orientation, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Construct a new FloatSlider object.
- Parameters
-
| orientation | The orientation of the slider (horizontal or vertical) |
| parent | The parent widget, or nullptr if none |
◆ floatValue()
| double FloatSlider::floatValue |
( |
| ) |
const |
Get the current floating point value.
- Returns
- Current float value
◆ floatValueChanged
| void FloatSlider::floatValueChanged |
( |
double |
val | ) |
|
|
signal |
Signal emitted when the float value changes.
- Parameters
-
◆ setFloatRange()
| void FloatSlider::setFloatRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
Set the floating point range for the slider.
- Parameters
-
| min | The minimum float value |
| max | The maximum float value |
◆ setFloatValue()
| void FloatSlider::setFloatValue |
( |
double |
val | ) |
|
Set the current floating point value.
- Parameters
-
| val | The float value to set |
The documentation for this class was generated from the following files:
- extern_app/professionals/library/OpencvQtAdapter/ui_interface/params_sliderbar/FloatSlideBar.h
- extern_app/professionals/library/OpencvQtAdapter/ui_interface/params_sliderbar/FloatSlideBar.cpp