【问题标题】:Vertical Text Orientation in QMLQML 中的垂直文本方向
【发布时间】:2019-04-05 02:33:09
【问题描述】:

如何在 QML 中显示垂直方向的文本,如下所示

Text {
    id: name13
    text: qsTr("John")
}

【问题讨论】:

    标签: qt qml


    【解决方案1】:

    我得到了答案,需要使用rotation属性并使用角度,在我的情况下是270

    Text {
        id: name13
        text: qsTr("John")
        rotation : 270
    }
    

    【讨论】:

      猜你喜欢
      • 2011-05-14
      • 1970-01-01
      • 2019-03-20
      • 2012-01-26
      • 2013-10-15
      相关资源
      最近更新 更多