import QtQuick 2.15
import QtQuick.Window 2.15
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
Rectangle{
anchors.centerIn: parent
width: 100
height: 200
color: "green"
Text {
id: name
text: qsTr("textaaaaaaa")
color: "red"
anchors.top: parent.bottom
//anchors.centerIn: parent
rotation: 90
transformOrigin: Item.TopLeft
}
}
}
Text 文字竖着显示
最新推荐文章于 2023-04-26 13:16:54 发布