I have a QGraphicsScene containing a few items. The corresponding QGraphicsView has no scrollbar so you have to use the mouse to view items which are not visible on the screen.

I would like to create a button which, when clicked, centers the scene and scales it in order to view all items at a time.

What's the best way to achieve that?