Results 1 to 2 of 2

Thread: Rotate QLabel

  1. #1
    Join Date
    Mar 2019
    Posts
    2
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Post Rotate QLabel

    Hello

    I would like to rotate a QLabel for 270 degrees.

    I tried a solution with a QGraphicsScene and it works, but the problem with it is that the label there does not scale if, for example, scale ratio in Windows changes (from 100% to 125%) and that is a problem.

    Is there an elegant way to rotate a qlabel in 2019?

    Thanks!
    Last edited by basania; 17th May 2019 at 08:44.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,336
    Thanks
    36
    Thanked 1,528 Times in 1,479 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Rotate QLabel

    Maybe the best approach is to describe what you need this for.

    There might be a widget which does want you need or it could be easier to write a custom widget than to make QLabel do something it was not intended to do

    Cheers,
    _

Similar Threads

  1. Rotate QLabel
    By Qt Coder in forum Newbie
    Replies: 2
    Last Post: 19th March 2009, 11:25
  2. Rotate QPixmap set on QLabel
    By Qt Coder in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2009, 12:08
  3. Replies: 2
    Last Post: 20th January 2009, 07:13
  4. Rotate QLabel
    By shader76 in forum Newbie
    Replies: 9
    Last Post: 24th December 2007, 12:31
  5. rotate Qlabel inside a QPopupMenu
    By mickey in forum Newbie
    Replies: 7
    Last Post: 1st May 2006, 17:33

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.