Results 1 to 2 of 2

Thread: QLabel orientation

  1. #1
    Join Date
    Feb 2007
    Posts
    73
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QLabel orientation

    I need to show text/labels vertically (like the text in right/left tabs in QPlastique style). Does anyone know if QLabel supports this? Or does anyone have any pointers how this might be accomplished?

    Using Qt 4.6.x on Ubuntu 9.04

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QLabel orientation

    You can implement this rather easily with QPainter transformation.
    But I think qxt lib http://www.libqxt.org/ has such a label already implement ready to be used.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Screen orientation
    By Tomasz in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 31st August 2010, 09:47
  2. Change QTableView orientation
    By r2d2u2 in forum Qt Programming
    Replies: 2
    Last Post: 31st May 2010, 10:30
  3. Replies: 1
    Last Post: 29th September 2009, 19:44
  4. QLineEdit text orientation
    By emrares in forum Qt Programming
    Replies: 7
    Last Post: 15th September 2009, 06:25
  5. QWidget orientation
    By Valheru in forum Qt Programming
    Replies: 8
    Last Post: 19th August 2008, 17:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.