Results 1 to 4 of 4

Thread: Rotate Graphicsview and Pixmap in synchro

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

    Default Rotate Graphicsview and Pixmap in synchro

    Hello all

    I have one QHBoxlayout in which I have included one Graphics view which works as a background image for view ,I added one qLabel on this layout in whcih I set a QPixmap image.
    The QPixmap image of QLabel is set as top middle image .

    Now I want to rotate both QPixmap of label and QGraphicsview in Synchronization .

    Its rotating but not in Syncho....


    Do I have to rotate both through center??

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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 Graphicsview and Pixmap in synchro

    Please provide a minimal compilable example reproducing the problem.
    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
    Mar 2009
    Posts
    116
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Rotate Graphicsview and Pixmap in synchro

    I have attached 2 images .

    The firstimage is set on QGraphicsscene and second image is QPixmap of QLabel
    Background image and set on the top of qGraphicsscene

    using QLabel->raise()


    Now I want to rotate both imgaes simultaneously ,

    Its working but the Qlabel image is ovelrapping on some markings of backround image ,which should not happen.

    Pleae help ....
    Attached Images Attached Images

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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 Graphicsview and Pixmap in synchro

    I don't consider an image a "compilable example". Don't expect people to help you if they don't know what you did.
    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.


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.