no message

master
zcy 2021-04-07 23:45:42 +08:00
parent d29cee3d5a
commit d74b58bd3e
3 changed files with 34 additions and 21 deletions

View File

@ -0,0 +1,4 @@
[requires]
lua/1.1.1
[imports]
.,* -> ./third @ folder=True, ignore_case=True, excludes=*.html *.jpeg

View File

@ -17,8 +17,6 @@ int main(int argc, char *argv[])
QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.load(url);
Dialog a;
a.show();
return app.exec();
}

View File

@ -11,14 +11,12 @@ ApplicationWindow {
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;
@ -33,12 +31,16 @@ ApplicationWindow {
width: parent.width
height:60
onClicked: {
console.log("shit")
console.log(uart_choose)
uart_choose.visible = true
net_choose = false
proto_debug = false
}
background: Image {
anchors.fill: parent
source: "qrc:///res/serial.svg"
}
}
Text {
text: qsTr("串口设置")
@ -59,7 +61,9 @@ ApplicationWindow {
source: "qrc:///res/net.svg"
}
onPressed:{
uart_choose.visible = false
net_choose = true
proto_debug = false
}
}
Text {
@ -81,7 +85,9 @@ ApplicationWindow {
source: "qrc:///res/proto.svg"
}
onPressed:{
uart_choose.visible = false
net_choose = false
proto_debug = true
}
}
Text {
@ -94,22 +100,27 @@ ApplicationWindow {
}
}
Rectangle {
color: "lightgray"
width: parent.width - 80;
id: uart_choose
width: parent.width - 80
height: parent.height
border.width: 1
radius: 5
border.color: "lightgrey"
color: "grey"
visible: false
}
Rectangle {
objectName: net_choose
width: parent.width - 80
height: parent.height
color: "grey"
visible: false
}
Rectangle {
objectName: proto_debug
width: parent.width - 80
height: parent.height
color: "grey"
visible: false
}
}
}
}
/*##^##
Designer {
D{i:6;anchors_width:120}
}
##^##*/