Hi,

in my scene I use to have a lot of removable items, so most of times the scene is bigger than expected, way more sometimes.

I want to solve this by updating, by code, its size qhen the user presses a button.

I'm doing:
Qt Code:
  1. QRectF itemRec = m_pSkScene->itemsBoundingRect();
  2. m_pSkScene->setSceneRect(itemRec);
  3. //m_pSkScene.views().at(0)->setSceneRect(itemRec);
  4. ui.graphicsView->setSceneRect(itemRec);
To copy to clipboard, switch view to plain text mode 

it resizes right, but when an item goes out the scroll bar doesn't appears as before. Setting "scrollBarAlwaysOn" doesn't solve it.

any idea? thanks!