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

20 lines
348 B
QML
Raw Normal View History

2026-03-02 14:29:58 +08:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Item {
width: 100
height: 30
property var text: ""
clip: true
Label {
text: parent.text
anchors.centerIn: parent
font.pixelSize: 15
anchors.verticalCenter: parent.verticalCenter
verticalAlignment: Text.AlignHCenter
}
}