Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::SliderDoubleCombo Class Reference

#include <SliderCombo.h>

Inherits QWidget.

Public Types

using value_type = double
 

Signals

void valueChanged ()
 Triggered when this control's value has been changed.
 
void editingFinished ()
 

Public Member Functions

 SliderDoubleCombo (QWidget *parent=nullptr)
 
void setValue (double value)
 Sets the current value.
 
void setValueSlider (double value)
 Sets the current value.
 
Q_REQUIRED_RESULT double value () const
 Return the current value.
 
void setMinimum (double min)
 Sets the hard minimum value selectable via the spinbox.
 
Q_REQUIRED_RESULT double minimum () const
 Returns the hard minimum value selectable via the spinbox.
 
void setMaximum (double max)
 Sets the hard maximum value selectable via the spinbox.
 
Q_REQUIRED_RESULT double maximum () const
 Returns the hard maximum value selectable via the spinbox.
 
void setRange (double min, double max)
 Sets the hard minimum and maximum values selectable via the spinbox.
 
void setSoftMinimum (double min)
 Sets the soft minimum value selectable via the slider.
 
Q_REQUIRED_RESULT double softMinimum () const
 Returns the soft minimum value selectable via the slider.
 
void setSoftMaximum (double max)
 Sets the soft maximum value selectable via the slider.
 
Q_REQUIRED_RESULT double softMaximum () const
 Returns the soft maximum value selectable via the slider.
 
Q_REQUIRED_RESULT bool hasSoftMinimum () const
 Returns true if a soft minimum is set for this control.
 
Q_REQUIRED_RESULT bool hasSoftMaximum () const
 Returns true if a soft maximum is set for this control.
 
void setSoftRange (double min, double max)
 Sets the soft minimum and maximum values selectable via the slider.
 
void setNumSteps (int steps)
 Sets the number of steps, which are used when changing value via the arrow keys.
 
Q_REQUIRED_RESULT int numSteps () const
 Returns the number of steps.
 
void setDecimals (int decimals)
 Sets the number of decimals the value is returned with.
 
Q_REQUIRED_RESULT int decimals () const
 Returns the number of decimals the value is returned with.
 
void setCurveMidpoint (double midpoint)
 
Q_REQUIRED_RESULT double curveMidpoint () const
 Returns the current curve midpoint setting.
 
DoubleSpinBoxspinbox () const
 Returns the underlying spinbox.
 
SliderDoubleslider () const
 Returns the underlying slider.
 

Protected Member Functions

void focusInEvent (QFocusEvent *event) override
 

Properties

double minimum
 Hard minimum value. Sets the minimum value on the SpinBox.
 
double maximum
 Hard maximum value. Sets the maximum value on the SpinBox.
 
int numSteps
 The number of steps used when changing the value via the arrow keys.
 
int decimals
 The number of decimals the value is returned with.
 
double value
 Current value.
 
double softMinimum
 Soft minimum value. Sets the minimum value on the Slider.
 
double softMaximum
 Soft maximum value. Sets the maximum value on the Slider.
 
double curveMidpoint
 

Detailed Description

This class provide a QWidget which contains a spinbox and a slider

Member Function Documentation

◆ editingFinished

void AzQtComponents::SliderDoubleCombo::editingFinished ( )
signal

Triggered when this control's value has stopped being changed. Only triggers once at the end of a drag operation.

◆ setCurveMidpoint()

void AzQtComponents::SliderDoubleCombo::setCurveMidpoint ( double  midpoint)

Sets a non-linear scale power curve for the slider. Defaults to 0.5, which is a linear curve. Lowering or raising the midpoint value will shift the scale to have higher precision at the lower or higher end, respectively.

Property Documentation

◆ curveMidpoint

double AzQtComponents::SliderDoubleCombo::curveMidpoint
readwrite

An optional non-linear scale setting for the slider using a power curve. Defaults to 0.5, which is a linear curve. Lowering or raising the midpoint value will shift the scale to have higher precision at the lower or higher end, respectively.


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