[Qt-interest] Wrapped view of a QGraphicsScene

Dale Marchand dale.marchand at gmail.com
Sat Jan 15 03:29:02 CET 2011


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 QGraphicsScene with boundaries of 0,0 and 10,10 and a
QGraphicsView centered at 10,5 with a 3 by 3 viewing rectangle, I would
like to see from upper left 9,4 to lower right 1,6, wrapping around at
the boundary.

Suggestions?

Dale Marchand



More information about the Qt-interest-old mailing list