QRectF GraphicsView::viewRect() const //class GraphicsView : public QGraphicsView{ return mapToScene( viewport()->rect() ).boundingRect();}