aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols2/doc/src/includes/qquickswitch.qdocinc
blob: 985f85d9796ec87cdb875d2b7028c47a59ba3eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! [position]

This property holds the logical position of the thumb indicator.

The position is expressed as a fraction of the indicator's size, in the range
\c 0.0 - \c 1.0. The position can be used for example to determine whether
the thumb has been dragged past the halfway point. For visualizing a thumb
indicator, the right-to-left aware \l visualPosition should be used instead.

\sa visualPosition

//! [position]


//! [visualPosition]

This property holds the visual position of the thumb indicator.

The position is expressed as a fraction of the indicator's size, in the range
\c 0.0 - \c 1.0. When the control is \l {Control::mirrored}{mirrored}, the
value is equal to \c {1.0 - position}. This makes the value suitable for
visualizing the thumb indicator taking right-to-left support into account.
In order to for example determine whether the thumb has been dragged past
the halfway point, the logical \l position should be used instead.

\sa position

//! [visualPosition]