Results 1 to 3 of 3

Thread: Rotate QLabel

  1. #1
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Rotate QLabel

    I have one QLabel in which I have set Image Pixmap .

    Now I want to rotate this whole QLabel along with the Pixmap..

    How to achieve this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Rotate QLabel

    Short answer - you can't. Long answer - place the label inside a graphics scene and rotate the scene. Of course it will be a lot easier to just place a pixmap in the scene instead of a label...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Rotate QLabel

    http://www.qtcentre.org/forum/f-newb...bel-18139.html

    I raised a similar question a couple of weeks ago.It might be of some use as I finally got the pixmap to rotate but,I don't think the image label rotates along with the pixmap.
    If everything seems to be going well, you have obviously overlooked something.

Similar Threads

  1. Trouble with QLabel
    By dany_MB in forum Newbie
    Replies: 3
    Last Post: 14th August 2009, 08:21
  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. Replies: 3
    Last Post: 17th July 2008, 07:43
  5. Rotate QLabel
    By shader76 in forum Newbie
    Replies: 9
    Last Post: 24th December 2007, 12:31

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.