0
点赞
收藏
分享

微信扫一扫

Text 文字竖着显示

郝春妮 2022-07-13 阅读 78


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 文字竖着显示_css3


举报

相关推荐

0 条评论