Important: Please read the Qt Code of Conduct -

QgraphicsView QgraphicsScene size policy

  • I have a strange behavior that I do not know how to manage it. I wish to have some more background around the objects that I already have on the scene in the view how can I archive this without scaling down this is not what I expect. Reason behind this is that if the user wish to work on the corner of the graphics to have enough space to move the objects around - I saw that it will be automatically enlarged if I will move the object more to the corner and then I will bring it back but I wish to do this programmatically . so basic another at least 20px around the edge objects and yes if the user will get closer again to the edge again by itself to enlarge the size.

Log in to reply