Aekold Helbrass wrote: > Hi All! > > I have a problem with QGraphicsScene and it's rect. I have few trees > of GraphicItems, while only one tree is visible at a time. I want to > share single instance of QGraphicsScene for this purpose. But when I > am using scene.setSceneRect(rect); when switching between trees - it > is not working as described in javadoc, no scrollbars are created when > I am moving item off the rectangle. But javadoc says: "i.e., a > rectangle that grows when items are added to or moved in the scene, > but never shrinks", but it never grown either.
You missed the part of that sentence that says "if unset" ;) When you set a sceneRect it has that value until you explicitly change it. If you want to get the boundingrect of the items in the scene then the proper function to use is itemsBoundingRect() best regards, Gunnar _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
