You are setting the scene to the wrong size because in the constructor the size of the view is not correct. You can see that in the figures you gave me, right?
Even if it worked then still trying to match the scene size with the view size is just a sign you don't understand how Graphics View architecture works. The scene operates in logical coordinates which are independent of how the scene is displayed in the view. The scene should have a fixed size and the view can zoom in on it so that it covers the whole area of the view's viewport.





Reply With Quote
Bookmarks