proto-debuger/protoDebuger/main.qml

116 lines
2.9 KiB
QML
Raw Normal View History

2021-04-04 02:57:36 +00:00
import QtQuick 2.14
import QtQuick.Window 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.12
ApplicationWindow {
id: root
width: 800
height: 600
visible: true
minimumHeight: 600
minimumWidth: 800
maximumWidth: 1024
maximumHeight: 800
Flow{
anchors.fill: parent
width: parent.width
height: parent.height
spacing: 30 //子项的间隔
Rectangle {
width: 80;
height: parent.height
color: "black"
Flow{
id: element
flow:Flow.TopToBottom //从上到下排列
width: parent.width
height: parent.height
Button{
width: parent.width
height:60
onClicked: {
console.log("shit")
}
background: Image {
anchors.fill: parent
source: "qrc:///res/serial.svg"
}
}
Text {
text: qsTr("串口设置")
width: parent.width
anchors.centerIn: parent.Center
color: "white"
font.pointSize: 10
}
Button{
width: parent.width
height:60
onClicked: {
console.log("shit")
}
background: Image {
anchors.fill: parent
source: "qrc:///res/net.svg"
}
onPressed:{
}
}
Text {
text: qsTr("网口设置")
width: parent.width
anchors.centerIn: parent.Center
color: "white"
font.pointSize: 10
}
Button{
width: parent.width
height:60
onClicked: {
console.log("shit")
}
background: Image {
anchors.fill: parent
source: "qrc:///res/proto.svg"
}
onPressed:{
}
}
Text {
text: qsTr("协议调试")
width: parent.width
anchors.centerIn: parent.Center
color: "white"
font.pointSize: 10
}
}
}
Rectangle {
color: "lightgray"
width: parent.width - 80;
height: parent.height
border.width: 1
radius: 5
border.color: "lightgrey"
}
}
}
/*##^##
Designer {
D{i:6;anchors_width:120}
}
##^##*/