CCIMXDesktop
 
Loading...
Searching...
No Matches
FloatSlider Class Reference

The FloatSlider class A QSlider subclass that allows working with floating point ranges and values. More...

#include <FloatSlideBar.h>

Inheritance diagram for FloatSlider:

Signals

void floatValueChanged (double val)
 Signal emitted when the float value changes.
 

Public Member Functions

 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.
 

Detailed Description

The FloatSlider class A QSlider subclass that allows working with floating point ranges and values.

Constructor & Destructor Documentation

◆ FloatSlider()

FloatSlider::FloatSlider ( Qt::Orientation  orientation,
QWidget *  parent = nullptr 
)
explicit

Construct a new FloatSlider object.

Parameters
orientationThe orientation of the slider (horizontal or vertical)
parentThe parent widget, or nullptr if none

Member Function Documentation

◆ 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
valThe new float value

◆ setFloatRange()

void FloatSlider::setFloatRange ( double  min,
double  max 
)

Set the floating point range for the slider.

Parameters
minThe minimum float value
maxThe maximum float value

◆ setFloatValue()

void FloatSlider::setFloatValue ( double  val)

Set the current floating point value.

Parameters
valThe float value to set

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