Results 1 to 3 of 3

Thread: Rotating the GraphicsItem while translating

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Rotating the GraphicsItem while translating

    Quote Originally Posted by ashishrai View Post
    My object gets created always from the original position and since I use a static variable to store whether the mouse key is pressed or not, I can do this if I have only one item or I should create a array of the no of objects I should add.
    So why do you use a static variable? Why not an ordinary non-static member variable?
    J-P Nurmi

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: Rotating the GraphicsItem while translating

    Why cant both be done at same time ??

    You can set the matrix for the graphics view. See QGraphicsView::setMatrix() and QGraphicsView::setTransform()

    u can combine the matrix to get the desired effect.
    Also I remember translation and rotation happening in Arthur PLugin example I guess/. Check the demos.

    Hope this helps.

Similar Threads

  1. problem translating & rotating text
    By impeteperry in forum Qt Programming
    Replies: 9
    Last Post: 3rd July 2006, 19:17

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
  •  
Qt is a trademark of The Qt Company.