aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/doc/src/includes/container-currentindex.qdocinc
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/doc/src/includes/container-currentindex.qdocinc')
-rw-r--r--src/quickcontrols/doc/src/includes/container-currentindex.qdocinc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quickcontrols/doc/src/includes/container-currentindex.qdocinc b/src/quickcontrols/doc/src/includes/container-currentindex.qdocinc
index 9fcf43e168..776e39dcfc 100644
--- a/src/quickcontrols/doc/src/includes/container-currentindex.qdocinc
+++ b/src/quickcontrols/doc/src/includes/container-currentindex.qdocinc
@@ -6,4 +6,10 @@ of each control. To do this without breaking bindings, avoid setting
\c currentIndex directly, and instead use
\l {Container::}{setCurrentIndex()}, for example.
See \l {Managing the Current Index} for more information.
+
+To perform an action when \c currentIndex changes, use the
+\c onCurrentIndexChanged
+\l {Property Change Signal Handlers}{property change signal handler}:
+
+\snippet qtquickcontrols-container-oncurrentindexchanged.qml 1
//! [file]