TG-PlatformPlus/qml/debug/gamma/common/SetTextField.qml

27 lines
462 B
QML
Raw Permalink Normal View History

2026-03-02 14:29:58 +08:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Item {
width: 500
height: 30
property var text: ""
property var value: ""
property var readonly: false
clip: true
TextField
{
id: tf
width: parent.width
height: parent.height
font.pixelSize: 15
text: parent.text
enabled:!parent.readonly
onEditingFinished: {
parent.value = text;
}
}
}