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