Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add a side toolbar with a vertical text in the toobar button
Forum Update on Tuesday, May 27th 2025

How to add a side toolbar with a vertical text in the toobar button

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 5.5k 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.
  • E Offline
    E Offline
    evanxg852000
    wrote on last edited by
    #1

    I want to have a tool bar layout verticaly which I can by susing

    @setOrrientation(Qt:vertical)@

    but the text in the button does not layout vertcation this only affect the layout of the button .

    and I want the text to be vertical like :

    P
    r
    o
    j
    e
    c
    t
    s

    please any clou would be helpfull and thanks in advance for reading.

    Evan-XG

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Maybe @setText(QLatin1String("P<br>r<br>o..."));@ works?

      That is adding br-tags between each letter. Unfortunately they are resulting in linebreaks in the code example above:-(

      1 Reply Last reply
      0
      • E Offline
        E Offline
        evanxg852000
        wrote on last edited by
        #3

        thanks, but it does not for me . I have look the src code of monkey studio , they created a dock widget inheriting from toolbar. I think I am goin to try that .

        Evan-XG

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          there was also a "FAQ":http://developer.qt.nokia.com/faq/answer/how_can_i_draw_vertical_text on this

          1 Reply Last reply
          0
          • E Offline
            E Offline
            evanxg852000
            wrote on last edited by
            #5

            Thanks for the reply . I finaly checked out monkey studio source code . the use drawing and rotating as specified in the answer .

            Evan-XG

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              moved this to desktop forum

              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