PDA

View Full Version : QGraphicsView/QGraphicsScene wrapping?



marchand
15th January 2011, 02:15
Looking for a way to allow a single view to wrap around a scene boundaries. For example, if I pan the view to the right hand boundary of the underlying scene, I'd like the view portion that extends past that right hand boundary to "wrap" around to view a portion of the left hand boundary.
So if I have a 10 x 10 scene, and my view is 3 x 2, centered on the 9,5 position, I would see from upper left 8,4 to lower right 1,6. Basically the merging of 2 separate views, UL 8,4 to LR 9,6 and UL 0,4 and LR 1,6.
Open to suggestions.