ESP32_upper/QML/pages/HomePage.qml

87 lines
2.5 KiB
QML

import QtQuick 2.15
import QtQuick.Layouts
import ESP32_upper 1.0
Item {
// anchors.fill: parent
ColumnLayout {
width: parent.width
height: parent.height
spacing: 2
Rectangle {
// chip type
Layout.preferredWidth: id_right_panel.width
Layout.preferredHeight: 60
color: "red"
// 主要的窗口内容容器
IconInfoLabel{ }
}
Rectangle {
// version info
Layout.preferredWidth: id_right_panel.width
Layout.preferredHeight: 60
color: "yellow"
RowLayout {
height: parent.height
spacing: 10
Text {
text: "版本号: 软件版本->"
font.pixelSize: id_gp.font_info_pixel_size
}
Text {
id: id_text_soft_ver
text: "未获取"
font.pixelSize: id_gp.font_info_pixel_size
}
Text {
text: " 硬件版本->"
font.pixelSize: id_gp.font_info_pixel_size
}
Text {
id: id_text_hard_ver
text: "未获取"
font.pixelSize: id_gp.font_info_pixel_size
}
}
}
Rectangle {
// software build time
Layout.preferredWidth: id_right_panel.width
Layout.preferredHeight: 60
color: "green"
RowLayout {
height: parent.height
spacing: 10
Text {
text: "固件编译时间:"
font.pixelSize: id_gp.font_info_pixel_size
}
Text {
id: id_text_firm_build_time
text: "未获取"
font.pixelSize: id_gp.font_info_pixel_size
}
}
}
Rectangle {
Layout.preferredWidth: id_right_panel.width
Layout.preferredHeight: 60
Layout.fillHeight: true
opacity: 0
}
Rectangle {
// connect state
Layout.preferredWidth: id_right_panel.width
Layout.preferredHeight: 60
color: "brown"
// 主要的窗口内容容器
HomePageConnectStateInfo{ }
}
}
}