-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.qml
More file actions
36 lines (30 loc) · 817 Bytes
/
main.qml
File metadata and controls
36 lines (30 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2026 Qt Group.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Controls.iOS
ApplicationWindow {
id: root
width: 390
height: 844
visible: true
title: qsTr("To Do List")
property alias stackView: stackView
StackView {
id: stackView
width: parent.width
height: parent.height
initialItem: "qrc:/HomePage.qml"
}
footer: TabBar {
TabButton {
text: "To Do"
icon.source: "qrc:/images/list.png"
onClicked: stackView.replace("qrc:/HomePage.qml")
}
TabButton {
text: "Settings"
icon.source: "qrc:/images/settings.png"
onClicked: stackView.replace("qrc:/SettingsPage.qml")
}
}
}