I'm having a scene where items will be added continuously and out of specific sceneRect
. items can be added infinite.
ex: if I set the scene rect as (0, 0, 5000, 5000)
there is a chance that an item can be added say pos (5010, 5010) so I cant able to define the scene rect.
I can't use scene->setSceneRect(scene->itemsBoundingRect());
because initially there won't be any item and I have to drop the item to scene rect.
So I need to specify initially some sceneRect
like viewport->rect()
of graphicsview. Then I have to increase it when ever any items added.
So how I can increase the sceneRect
when the items keep on adding and the view increases its scroll area.