You should display the upper left corner (0,0) of your viewport on the stage. Width and height are equal to the width and height of the viewport.
To get the rectangle of the current screen, try the following:
QRect exposedRect(graphicsView.mapToScene(0,0).toPoint(), graphicsView.viewport()->rect().size());
I assume you can handle this here.
source
share