PDA

View Full Version : Rotate QLabel



Qt Coder
19th March 2009, 09:58
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?

wysota
19th March 2009, 10:10
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...

rishiraj
19th March 2009, 11:25
http://www.qtcentre.org/forum/f-newbie-4/t-rotate-a-qpixmap-which-is-set-on-top-of-a-qlabel-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.