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