proto-debuger/protoDebuger/ProtoDebug.qml

71 lines
1.4 KiB
QML
Raw Normal View History

2021-04-13 17:28:19 +00:00
import QtQuick 2.0
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.0
Item {
objectName: "ProtoDebug"
width: parent.width - 80
height: parent.height
// width: 800
// height: 600
property var comlist: []
visible: true
property bool uart_open: false
ColorAnimation {
from: "white"
to: "black"
duration: 200
}
Rectangle{
width: parent.width
height: parent.height
color: "#aeaeae"
scale: 1
transformOrigin: Item.Center
Label {
id: label
x: 49
y: 30
text: qsTr("lua脚本")
Layout.preferredHeight: 26
Layout.preferredWidth: 179
}
TextArea {
id: text_output
x: 8
y: 75
width: parent.width/2.1
height: parent.height - 150
color: "black"
text: qsTr("")
}
TextEdit {
id: lua_script
x: 411
y: 75
width: parent.width/2.1
height: parent.height - 150
text: qsTr("")
Layout.columnSpan: 2
font.pixelSize: 12
}
Button {
id: button
x: 344
y: 540
text: qsTr("更新lua脚本")
Layout.preferredHeight: 41
Layout.preferredWidth: 116
}
}
}