QPointF QGraphicsView::saveViewport(); void QGraphicsView::restoreViewport(QPointF)
QPointF pos = ui->graphicsView->mapToScene( 0, 0 );
ui->graphicsView->scrollContentsBy( (int)pos.x(), (int)pos.y() );
QPolygonF viewportF = gv->mapToScene( gv->viewport()->geometry() );
gv->ensureVisible( viewportF.boundingRect() );