diff options
Diffstat (limited to 'src/quickcontrols/doc/snippets/qtquickcontrols-container-oncurrentindexchanged.qml')
-rw-r--r-- | src/quickcontrols/doc/snippets/qtquickcontrols-container-oncurrentindexchanged.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/quickcontrols/doc/snippets/qtquickcontrols-container-oncurrentindexchanged.qml b/src/quickcontrols/doc/snippets/qtquickcontrols-container-oncurrentindexchanged.qml new file mode 100644 index 0000000000..19b48191ee --- /dev/null +++ b/src/quickcontrols/doc/snippets/qtquickcontrols-container-oncurrentindexchanged.qml @@ -0,0 +1,13 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick.Controls + +Container { + //! [1] + onCurrentIndexChanged: { + print("currentIndex changed to", currentIndex) + // ... + } + //! [1] +} |