hi friends,experts,
im 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 .
im implementing panning on graphicsview . so i need the scene rect to restrict within the items added . the item can be increased and the scene rect has to increase proposition to it. if i set 32000x32000 even if no items has been added. it wil lshow lots of empty spaces
i cant use scene->setSceneRect(scene->itemsBoundingRect()); because initially there wont be any item and i have to drop the item to scene rect.
so i need to specify initilaly 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.
thanks in advance.
Bookmarks