aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/Scanner/Main.qml
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-05-12 12:23:19 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-05-15 10:27:55 +0000
commita57405a64b5a64104610080218d4311197df0cd1 (patch)
treeaecfbdae6182d9fbeaa6b8c3c023f67ad2fad892 /examples/bluetooth/lowenergyscanner/Scanner/Main.qml
parent683c8ed5da398a66a8d193519430b19f64366bfc (diff)
LowEnergyScanner: QML Revamp
- Modifications as per ca681cd1b3a51d10106a1287a98c5590100feb6a Task-number: PYSIDE-2206 Change-Id: Iffcfa58245652fde180f43c560085ae7855ac221 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit fbcf425088f623d440e4a8b342d7fbab9bf5e6b1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/Scanner/Main.qml')
-rw-r--r--examples/bluetooth/lowenergyscanner/Scanner/Main.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/bluetooth/lowenergyscanner/Scanner/Main.qml b/examples/bluetooth/lowenergyscanner/Scanner/Main.qml
new file mode 100644
index 000000000..88600bace
--- /dev/null
+++ b/examples/bluetooth/lowenergyscanner/Scanner/Main.qml
@@ -0,0 +1,31 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick.Layouts
+
+Window {
+ id: main
+
+ width: 300
+ height: 600
+ visible: true
+
+ StackLayout {
+ id: pagesLayout
+ anchors.fill: parent
+ currentIndex: 0
+
+ Devices {
+ onShowServices: pagesLayout.currentIndex = 1
+ }
+ Services {
+ onShowDevices: pagesLayout.currentIndex = 0
+ onShowCharacteristics: pagesLayout.currentIndex = 2
+ }
+ Characteristics {
+ onShowDevices: pagesLayout.currentIndex = 0
+ onShowServices: pagesLayout.currentIndex = 1
+ }
+ }
+}