TG-PlatformPlus/qml/Instruction/common/MutiInput.qml

41 lines
757 B
QML
Raw Permalink Normal View History

2026-03-02 14:29:58 +08:00
import QtQuick
import QtQuick.Controls
BaseCommon
{
id: self
width: parent.width
height: 100
Item
{
id: titleItem
width: 100
height: 25
Text{
id: titleText
anchors.left: parent.left
text: title
}
}
Rectangle
{
anchors.left: titleItem.right
border.color: "gray"
border.width: 1
height: parent.height - 4
anchors.right: parent.right
clip: true
TextEdit{
id: te
anchors.fill: parent
anchors.margins: 1
onTextChanged: {
value = text
}
}
}
function setValue(_value)
{
te.text = _value
}
}