This is because your scene rect is smaller than your view rect. The scene is centered in the view.
Maybe you want to override QGraphicsView::drawForeground and make the rectangle always stay at view coordinates ( 0, 0 ).
Regards
This is because your scene rect is smaller than your view rect. The scene is centered in the view.
Maybe you want to override QGraphicsView::drawForeground and make the rectangle always stay at view coordinates ( 0, 0 ).
Regards
Bookmarks