From 9605785dc444e837373ad1fb4e886cd1c77038bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Wed, 18 Jun 2025 09:22:29 +0200 Subject: Add a Label that shows the currentIndex to SearchFieldPage Change-Id: I1d974ae4567c1a2c52d3fcf1dfbe65a5f437201b --- examples/quickcontrols/gallery/pages/SearchFieldPage.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/quickcontrols/gallery/pages/SearchFieldPage.qml b/examples/quickcontrols/gallery/pages/SearchFieldPage.qml index e790994bc4..4295284168 100644 --- a/examples/quickcontrols/gallery/pages/SearchFieldPage.qml +++ b/examples/quickcontrols/gallery/pages/SearchFieldPage.qml @@ -21,12 +21,14 @@ ScrollablePage { ListModel { id: colorModel + ListElement { color: "light red" } ListElement { color: "blue" } ListElement { color: "green" } ListElement { color: "red" } ListElement { color: "yellow" } ListElement { color: "orange" } ListElement { color: "purple" } + ListElement { color: "fred" } } SortFilterProxyModel { @@ -53,6 +55,7 @@ ScrollablePage { id: colorSearch suggestionModel: colorFilter anchors.horizontalCenter: parent.horizontalCenter + onCurrentIndexChanged: { console.log("currentIndex: " + currentIndex) } } } } -- 2.39.3 (Apple Git-146)