4#ifndef QABSTRACTSLIDER_H
5#define QABSTRACTSLIDER_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qwidget.h>
23 Q_PROPERTY(
int singleStep READ singleStep WRITE setSingleStep)
24 Q_PROPERTY(
int pageStep READ pageStep WRITE setPageStep)
26 Q_PROPERTY(
int sliderPosition READ sliderPosition WRITE setSliderPosition NOTIFY sliderMoved)
27 Q_PROPERTY(
bool tracking READ hasTracking WRITE setTracking)
29 Q_PROPERTY(
bool invertedAppearance READ invertedAppearance WRITE setInvertedAppearance)
30 Q_PROPERTY(
bool invertedControls READ invertedControls WRITE setInvertedControls)
31 Q_PROPERTY(
bool sliderDown READ isSliderDown WRITE setSliderDown DESIGNABLE
false)
45 void setSingleStep(
int);
46 int singleStep()
const;
48 void setPageStep(
int);
51 void setTracking(
bool enable);
52 bool hasTracking()
const;
54 void setSliderDown(
bool);
55 bool isSliderDown()
const;
57 void setSliderPosition(
int);
58 int sliderPosition()
const;
60 void setInvertedAppearance(
bool);
61 bool invertedAppearance()
const;
63 void setInvertedControls(
bool);
64 bool invertedControls()
const;
79 void triggerAction(SliderAction action);
100 void setRepeatAction(
SliderAction action,
int thresholdTime = 500,
int repeatTime = 50);
109 virtual void sliderChange(SliderChange change);
113#if QT_CONFIG(wheelevent)
114 void wheelEvent(QWheelEvent *
e)
override;
The QAbstractSlider class provides an integer value within a range.
void sliderPressed()
This signal is emitted when the user presses the slider with the mouse, or programmatically when setS...
void sliderReleased()
This signal is emitted when the user releases the slider with the mouse, or programmatically when set...
void valueChanged(int value)
This signal is emitted when the slider value has changed, with the new slider value as argument.
SliderAction
\value SliderNoAction \value SliderSingleStepAdd \value SliderSingleStepSub \value SliderPageStepAdd ...
void actionTriggered(int action)
This signal is emitted when the slider action action is triggered.
void sliderMoved(int position)
This signal is emitted when sliderDown is true and the slider moves.
SliderChange
\value SliderRangeChange \value SliderOrientationChange \value SliderStepsChange \value SliderValueCh...
@ SliderOrientationChange
void rangeChanged(int min, int max)
This signal is emitted when the slider range has changed, with min being the new minimum,...
The QKeyEvent class describes a key event.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QT_REQUIRE_CONFIG(feature)
settings setValue("DataPump/bgcolor", color)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent