Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Used to select a range of values by sliding two handles along a track. More...
Static Public Member Functions | |
static QQuickRangeSliderNodePrivate * | get (QQuickRangeSliderNode *node) |
static QQuickRangeSliderNodePrivate * | get (QQuickRangeSliderNode *node) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(*) | StaticMetaCallFunction(QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Used to select a range of values by sliding two handles along a track.
\qmltype RangeSlider \inherits Control
! \nativetype QQuickRangeSlider \inqmlmodule QtQuick.Controls
RangeSlider is used to select a range specified by two values, by sliding each handle along a track.
In the example below, custom \l from and \l to values are set, and the initial positions of the \l first and \l second handles are set:
In order to perform an action when the value for a particular handle changes, use the following syntax:
The \l {first.position} and \l {second.position} properties are expressed as fractions of the control's size, in the range {0.0
- 1.0}. The \l {first.visualPosition} and \l {second.visualPosition} properties are the same, except that they are reversed in a \l {Right-to-left User Interfaces}{right-to-left} application. The visualPosition
is useful for positioning the handles when styling RangeSlider. In the example above, \l {first.visualPosition} will be 0.24
in a left-to-right application, and 0.76
in a right-to-left application.
For a slider that allows the user to select a single value, see \l Slider.
Definition at line 62 of file qquickrangeslider.cpp.
|
inline |
Definition at line 66 of file qquickrangeslider.cpp.
|
inline |
Definition at line 66 of file qquickrangeslider.cpp.
void QQuickRangeSliderNodePrivate::cancelHandle | ( | ) |
Definition at line 120 of file qquickrangeslider.cpp.
void QQuickRangeSliderNodePrivate::cancelHandle | ( | ) |
Definition at line 126 of file qquickrangeslider.cpp.
|
static |
Definition at line 138 of file qquickrangeslider.cpp.
Referenced by QQuickRangeSliderPrivate::handleMove(), QQuickRangeSliderPrivate::handleRelease(), QQuickRangeSliderPrivate::handleUngrab(), and QQuickRangeSliderPrivate::pressedNode().
|
static |
bool QQuickRangeSliderNodePrivate::isFirst | ( | ) | const |
Definition at line 93 of file qquickrangeslider.cpp.
bool QQuickRangeSliderNodePrivate::isFirst | ( | ) | const |
Definition at line 98 of file qquickrangeslider.cpp.
Definition at line 112 of file qquickrangeslider.cpp.
QQuickDeferredPointer< QQuickItem > QQuickRangeSliderNodePrivate::handle |
Definition at line 86 of file qquickrangeslider.cpp.
bool QQuickRangeSliderNodePrivate::hovered = false |
Definition at line 89 of file qquickrangeslider.cpp.
bool QQuickRangeSliderNodePrivate::isPendingValue = false |
Definition at line 83 of file qquickrangeslider.cpp.
qreal QQuickRangeSliderNodePrivate::pendingValue = 0 |
Definition at line 84 of file qquickrangeslider.cpp.
qreal QQuickRangeSliderNodePrivate::position = 0 |
Definition at line 85 of file qquickrangeslider.cpp.
bool QQuickRangeSliderNodePrivate::pressed = false |
Definition at line 88 of file qquickrangeslider.cpp.
QQuickRangeSlider * QQuickRangeSliderNodePrivate::slider = nullptr |
Definition at line 87 of file qquickrangeslider.cpp.
int QQuickRangeSliderNodePrivate::touchId = -1 |
Definition at line 90 of file qquickrangeslider.cpp.
Referenced by QQuickRangeSliderPrivate::handleRelease(), QQuickRangeSliderPrivate::handleUngrab(), and QQuickRangeSliderPrivate::pressedNode().
qreal QQuickRangeSliderNodePrivate::value = 0 |
Definition at line 82 of file qquickrangeslider.cpp.