wearable.qml Example File
wearable/wearable.qml
import QtQuick 2.7
import QtQuick.Controls 2.0 as QQC2
import "qml"
import "qml/Style"
QQC2.ApplicationWindow {
id: window
visible: true
width: 320
height: 320
title: qsTr("Wearable")
background: Image {
source: "images/background.png"
}
header: NaviButton {
id: homeButton
edge: Qt.TopEdge
enabled: stackView.depth > 1
imageSource: "images/home.png"
onClicked: stackView.pop(null)
}
footer: NaviButton {
id: backButton
edge: Qt.BottomEdge
enabled: stackView.depth > 1
imageSource: "images/back.png"
onClicked: stackView.pop()
}
QQC2.StackView {
id: stackView
focus: true
anchors.fill: parent
initialItem: LauncherPage {
onLaunched: stackView.push(page)
}
}
}