.. _api_AbstractSlider: AbstractSlider ============== Inherited: :ref:`Widget` .. _api_AbstractSlider_description: Description ----------- AbstractSlider provides common functionality for widgets that allow selecting a value from a range using a draggable knob. This class is intended to be inherited by concrete slider implementations. .. _api_AbstractSlider_public: Public Methods -------------- +------------------------------+-----------------------------------------------------------------------+ | :ref:`Widget` * | :ref:`knob` () const | +------------------------------+-----------------------------------------------------------------------+ | int | :ref:`maximum` () const | +------------------------------+-----------------------------------------------------------------------+ | int | :ref:`minimum` () const | +------------------------------+-----------------------------------------------------------------------+ | int | :ref:`orientation` () const | +------------------------------+-----------------------------------------------------------------------+ | void | :ref:`pressed` () | +------------------------------+-----------------------------------------------------------------------+ | void | :ref:`setKnob` (Widget * knob) | +------------------------------+-----------------------------------------------------------------------+ | void | :ref:`setMaximum` (int maximum) | +------------------------------+-----------------------------------------------------------------------+ | void | :ref:`setMinimum` (int minimum) | +------------------------------+-----------------------------------------------------------------------+ | void | :ref:`setOrientation` (int orientation) | +------------------------------+-----------------------------------------------------------------------+ | void | :ref:`setValue` (int value) | +------------------------------+-----------------------------------------------------------------------+ | int | :ref:`value` () const | +------------------------------+-----------------------------------------------------------------------+ | void | :ref:`valueChanged` (int value) | +------------------------------+-----------------------------------------------------------------------+ .. _api_AbstractSlider_static: Static Methods -------------- None .. _api_AbstractSlider_methods: Methods Description ------------------- .. _api_AbstractSlider_2b9374a5: :ref:`Widget` * **AbstractSlider::knob** () const Returns the knob widget. **See also** setKnob(). ---- .. _api_AbstractSlider_3e6d5b18: int **AbstractSlider::maximum** () const Returns the maximum value of the slider. **See also** setMaximum(). ---- .. _api_AbstractSlider_37cbfd60: int **AbstractSlider::minimum** () const Returns the minimum value of the slider. **See also** setMinimum(). ---- .. _api_AbstractSlider_dc70f1e3: int **AbstractSlider::orientation** () const Returns the current orientation of the slider (Horizontal or Vertical). **See also** setOrientation(). ---- .. _api_AbstractSlider_36d581b9: void **AbstractSlider::pressed** () Emits the pressed() signal. Called when the slider is pressed (mouse down or touch begin). ---- .. _api_AbstractSlider_62d1ac08: void **AbstractSlider::setKnob** (:ref:`Widget` * *knob*) Sets the *knob* widget. **See also** knob(). ---- .. _api_AbstractSlider_97ef120c: void **AbstractSlider::setMaximum** (int *maximum*) Sets the *maximum* value of the slider. **See also** maximum(). ---- .. _api_AbstractSlider_9708c4eb: void **AbstractSlider::setMinimum** (int *minimum*) Sets the *minimum* value of the slider. **See also** minimum(). ---- .. _api_AbstractSlider_456c2a89: void **AbstractSlider::setOrientation** (int *orientation*) Sets the *orientation* of the slider. **See also** orientation(). ---- .. _api_AbstractSlider_f59c6d7b: void **AbstractSlider::setValue** (int *value*) Sets the current *value* of the slider. **See also** value(). ---- .. _api_AbstractSlider_e4d8f5b0: int **AbstractSlider::value** () const Returns the current value of the slider. **See also** setValue(). ---- .. _api_AbstractSlider_6c783e5d: void **AbstractSlider::valueChanged** (int *value*) Emits the valueChanged() signal. Called when the slider's *value* changes.