Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Vertical Orientation of Text
Qt 6.11 is out! See what's new in the release blog

Vertical Orientation of Text

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 9.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ronak.rks
    wrote on last edited by
    #1

    Hi,

    I want to display a Text but in vertical orientation. I do not see any property in the Text element to do it.

    Do i need to rotate the Text element explicitly to achieve the same?

    Thanks
    Ronak

    Edit: moved to Quick forum as it seems to be about QML; Andre

    1 Reply Last reply
    0
    • R Offline
      R Offline
      ronak.rks
      wrote on last edited by
      #2

      I got one solution (via rotation) -
      @ rotation: -90@

      Is this the most optimized way to achieve this target ?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rahul Das
        wrote on last edited by
        #3

        You might also want to go through "-this-":http://developer.qt.nokia.com/faq/answer/how_can_i_draw_vertical_text

        EDIT : not related to QML


        Declaration of (Platform) independence.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ronak.rks
          wrote on last edited by
          #4

          [quote author="Rahul Das" date="1328431776"]You might also want to go through "-this-":http://developer.qt.nokia.com/faq/answer/how_can_i_draw_vertical_text

          EDIT : not related to QML[/quote]

          Hi,

          The quote in the given link makes sense, but how do i consume this from my QML (sorry if this is a silly question, but i am not aware of integrating between C++ and QML).

          Thanks
          Ronak

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rahul Das
            wrote on last edited by
            #5

            I am sorry. I dont know how to do it. But as far as i know, there is no vertical text alignment , by default. Not sure.

            But i found one "article to rotate text":http://kerncomputing.blogspot.com/2010/10/qt-quick-using-qml-to-rotate-text.html. May be useful to you.


            Declaration of (Platform) independence.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved