qgraphicsview get visible rect code example
Example: qgraphicsscene get viewport width
graphicsView->mapToScene(graphicsView->viewport()->geometry()).boundingRect()
graphicsView->mapToScene(graphicsView->viewport()->geometry()).boundingRect()