Hello.
I need some tips from my fellow programmers. I am working with QGraphicsView and QGraphicsScene as the title implies and what I need some tips with is how to size/scale QGraphicsScene in proportion to the view.
What I have now is a view widget that expands as the window expands and fixed size to the scene. But what I want is the same behavior for the scene as a widget has when it expands with the mainwindow. And I am not sure how to do this in a effective way. I am thinking about scaling but do not know if there are better ways.
I have attached a picture to try and clarify what I want. If you look at the picture, I want the items in the scene have the same proportions when I maximize the window.
Bookmarks