C
Qt Quick Ultralite Watch Demo
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
import QtQuick 2.15
import Watch 1.0
Rectangle {
color: Theme.backgroundColor
// The desktop platform requires to set the root item size to know the size
// of the main window
height: Theme.isDesktop ? Theme.appHeight : 0
width: Theme.isDesktop ? Theme.appWidth : 0
Rectangle {
height: Theme.appHeight
width: Theme.appWidth
anchors.centerIn: parent
color: Theme.backgroundColor
clip: true
WidgetsRow {
id: widgets
anchors.fill: parent
visible: !MainModel.compassOn
}
CompassWidget {
visible: MainModel.compassOn
}
}
}