Source

Target

Commits (2)
Showing with 7 additions and 2 deletions
...@@ -11,8 +11,8 @@ Button { ...@@ -11,8 +11,8 @@ Button {
parent: Overlay.overlay parent: Overlay.overlay
x: (parent.width - width) / 2 x: Math.round((parent.width - width) / 2)
y: (parent.height - height) / 2 y: Math.round((parent.height - height) / 2)
width: 100 width: 100
height: 100 height: 100
} }
......
...@@ -86,6 +86,8 @@ QT_BEGIN_NAMESPACE ...@@ -86,6 +86,8 @@ QT_BEGIN_NAMESPACE
RangeSlider. In the example above, \l {first.visualPosition} will be \c 0.24 RangeSlider. In the example above, \l {first.visualPosition} will be \c 0.24
in a left-to-right application, and \c 0.76 in a right-to-left application. in a left-to-right application, and \c 0.76 in a right-to-left application.
For a slider that allows the user to select a single value, see \l Slider.
\sa {Customizing RangeSlider}, {Input Controls}, \sa {Customizing RangeSlider}, {Input Controls},
{Focus Management in Qt Quick Controls 2} {Focus Management in Qt Quick Controls 2}
*/ */
......
...@@ -73,6 +73,9 @@ QT_BEGIN_NAMESPACE ...@@ -73,6 +73,9 @@ QT_BEGIN_NAMESPACE
In the example above, \l visualPosition will be \c 0.24 in a left-to-right In the example above, \l visualPosition will be \c 0.24 in a left-to-right
application, and \c 0.76 in a right-to-left application. application, and \c 0.76 in a right-to-left application.
For a slider that allows the user to select a range by providing two
handles, see \l RangeSlider.
\sa {Customizing Slider}, {Input Controls} \sa {Customizing Slider}, {Input Controls}
*/ */
......