[Qt-interest] Disable centering scene in QGraphicsView!

Jack Mack jackmack2000de at yahoo.de
Wed Jun 16 11:14:48 CEST 2010


Hi,

I use the QGraphicsScene to handle some QGraphicsPixmapItems. The scene is also visualized by a QGraphicsView.

But the scene is always showed centered. I know this is the default settings.
What I want sounds simple but I don't know how I can do that.

When I insert two items to the scene and select one and moves it to the right border of the view (widget) then the other one is moving out of the left border. I think the problem is that the views rect is not actualized with the scene size. The scene is always centered to the (too small!) view.

And how I can setup the view and scene that both coordinates origin (0/0) starts at the left above corner?

Thanks.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100616/f4054521/attachment.html 


More information about the Qt-interest-old mailing list