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::SliderCombo Class Reference

#include <SliderCombo.h>

Inherits QWidget.

Public Types

using value_type = int
 

Signals

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

Public Member Functions

 SliderCombo (QWidget *parent=nullptr)
 
void setValue (int value)
 Sets the current value.
 
Q_REQUIRED_RESULT int value () const
 Gets the current value.
 
void setMinimum (int min)
 Sets the hard minimum value selectable via the spinbox.
 
Q_REQUIRED_RESULT int minimum () const
 Gets the hard minimum value selectable via the spinbox.
 
void setMaximum (int max)
 Sets the hard maximum value selectable via the spinbox.
 
Q_REQUIRED_RESULT int maximum () const
 Gets the hard maximum value selectable via the spinbox.
 
void setRange (int min, int max)
 Sets the hard minimum and maximum values selectable via the spinbox.
 
void setSoftMinimum (int min)
 Sets the soft minimum value selectable via the slider.
 
Q_REQUIRED_RESULT int softMinimum () const
 Gets the soft minimum value selectable via the slider.
 
void setSoftMaximum (int max)
 Sets the soft maximum value selectable via the slider.
 
Q_REQUIRED_RESULT int softMaximum () const
 Gets the soft maximum value selectable via the slider.
 
Q_REQUIRED_RESULT bool hasSoftMinimum () const
 Gets true if a soft minimum is set for this control.
 
Q_REQUIRED_RESULT bool hasSoftMaximum () const
 Gets true if a soft maximum is set for this control.
 
void setSoftRange (int min, int max)
 Sets the soft minimum and maximum values selectable via the slider.
 
SpinBoxspinbox () const
 Returns the underlying spinbox.
 
SliderIntslider () const
 Returns the underlying slider.
 

Protected Member Functions

void focusInEvent (QFocusEvent *event) override
 

Properties

int minimum
 Hard minimum value. Sets the minimum value on the SpinBox.
 
int maximum
 Hard maximum value. Sets the maximum value on the SpinBox.
 
int softMinimum
 Soft minimum value. Sets the minimum value on the Slider.
 
int softMaximum
 Soft maximum value. Sets the maximum value on the Slider.
 
int value
 Current value.
 

Detailed Description

Control that combines a SpinBox and a Slider for integer value input. This control can be set to have soft and hard minimum and maximum values. If they differ, the soft minimum and maximum values define the range that is selectable via the slider, while the hard minimum and maximum are the actual limits in the range of selectable values. This can be used to implement a recommended range of values easily selectable via the slider, and also support the actual value range for a property via manual input.

Member Function Documentation

◆ editingFinished

void AzQtComponents::SliderCombo::editingFinished ( )
signal

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


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