Results 1 to 3 of 3

Thread: Moving QGraphicsScene to Left or Right firections

  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Moving QGraphicsScene to Left or Right firections

    Hi all,

    I have added a QGraphicsscene in my QGraphicsView.

    I need to move the Scene to left or right directions depend on the left or right button selected.

    What method to be used to change the view of the scene coordinates.

  2. #2
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Moving QGraphicsScene to Left or Right firections

    Hi someone please help on this query

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Moving QGraphicsScene to Left or Right firections

    Did you try using setSceneRect?
    Make sure you don't center it in the view when you want to move it around.

Similar Threads

  1. Replies: 0
    Last Post: 24th May 2010, 13:19
  2. Moving left and right on the screen
    By Benjamin in forum Qt Programming
    Replies: 6
    Last Post: 21st June 2009, 20:09
  3. Plotting from Left to Right ??
    By dheeraj in forum Qwt
    Replies: 3
    Last Post: 3rd June 2008, 08:09
  4. Moving the QGraphicsScene background content
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 16th May 2008, 08:37
  5. Moving an item in QGraphicsScene
    By prosass in forum Newbie
    Replies: 4
    Last Post: 28th March 2007, 15:21

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.