aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickscrollbar.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@gmail.com>2016-03-23 17:55:52 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-23 20:49:36 +0000
commitddd88c154ec9f58e28014cb80f792ba0d2dcb619 (patch)
treee2ba93738bf1ad632dbfa1254842bdea9fb63869 /src/templates/qquickscrollbar.cpp
parentc5316d174728513859c8fe931803562777d57b4c (diff)
Docs: add examples how to sync active states for ScrollBar & Indicator
Change-Id: I353f9c8b0dec4eef71d27300645a1dc3cbca82cd Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickscrollbar.cpp')
-rw-r--r--src/templates/qquickscrollbar.cpp7
1 files changed, 7 insertions, 0 deletions
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}