Results 1 to 3 of 3

Thread: Add QLabel to QGraphicsScene

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

    Default Add QLabel to QGraphicsScene

    I have one QLabel whcih I want to add to QGraphicsScene....

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

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Add QLabel to QGraphicsScene

    Quote Originally Posted by Qt Coder View Post
    How to do this ????????????????
    Use QGraphicsScene::addWidget( QWidget * widget, Qt::WindowFlags wFlags = 0 )!!!!!!!!!!!!!!!!!!!!!
    Use the docs!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    Default Re: Add QLabel to QGraphicsScene

    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

Similar Threads

  1. Trouble with QLabel
    By dany_MB in forum Newbie
    Replies: 3
    Last Post: 14th August 2009, 09:21
  2. Replies: 0
    Last Post: 5th March 2009, 07:54
  3. Replies: 3
    Last Post: 17th July 2008, 08:43
  4. QLabel ScaledContents ignored by style sheet?
    By WinchellChung in forum Newbie
    Replies: 3
    Last Post: 27th February 2008, 15:50
  5. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 18:57

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.