PDA

View Full Version : Add QLabel to QGraphicsScene



Qt Coder
18th March 2009, 13:14
I have one QLabel whcih I want to add to QGraphicsScene....

How to do this ????????????????

Lykurg
18th March 2009, 13:31
How to do this ????????????????
Use QGraphicsScene::addWidget( QWidget * widget, Qt::WindowFlags wFlags = 0 )!!!!!!!!!!!!!!!!!!!!!
Use the docs!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Qt Coder
19th March 2009, 06:21
Thanx for Replying


The Qlabel is added to QGraphics scene.But when the QGraphicsView containing the scene is rotated the qlabel pixmap is not rotated


Actually I have one background image (QGraphicsScene )and on top of this I have one small image (Qlabel-Pixmap Image).

Now I want to Rotate both images synchronously .. How to do that