From ddd88c154ec9f58e28014cb80f792ba0d2dcb619 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 23 Mar 2016 17:55:52 +0100 Subject: Docs: add examples how to sync active states for ScrollBar & Indicator Change-Id: I353f9c8b0dec4eef71d27300645a1dc3cbca82cd Reviewed-by: Mitch Curtis --- src/templates/qquickscrollbar.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/templates/qquickscrollbar.cpp') diff --git a/src/templates/qquickscrollbar.cpp b/src/templates/qquickscrollbar.cpp index 6e179e71..d6a15f7e 100644 --- a/src/templates/qquickscrollbar.cpp +++ b/src/templates/qquickscrollbar.cpp @@ -88,6 +88,13 @@ QT_BEGIN_NAMESPACE } \endcode + Horizontal and vertical scroll bars do not share the \l active state with + each other by default. In order to keep both bars visible whilst scrolling + to either direction, establish a two-way binding between the active states + as presented by the following example: + + \snippet qtquickcontrols-scrollbar-active.qml 1 + \labs \sa ScrollIndicator, {Customizing ScrollBar}, {Indicator Controls} -- cgit v1.2.3