Revision control

Copy as Markdown

// 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
anchors.topMargin: parent.SafeArea.margins.top
anchors.leftMargin: parent.SafeArea.margins.left
anchors.rightMargin: parent.SafeArea.margins.right
anchors.bottomMargin: parent.SafeArea.margins.bottom
Devices {
onShowServices: pagesLayout.currentIndex = 1
}
Services {
onShowDevices: pagesLayout.currentIndex = 0
onShowCharacteristics: pagesLayout.currentIndex = 2
}
Characteristics {
onShowDevices: pagesLayout.currentIndex = 0
onShowServices: pagesLayout.currentIndex = 1
}
}
}