Answer the question
In order to leave comments, you need to log in
How to make QGraphicsScene not move?
Good people, tell me, when drawing on QGraphicsScene (QGraphicsView), the center of the scene moves in some way in accordance with the drawn element. I would like the initial center of the scene (coordinates 0,0) to remain stationary relative to the QGraphicsView widget when drawing. In English, not very good. strong, tried to find in the documentation but could not.
Answer the question
In order to leave comments, you need to log in
I don't have much experience with the scene, but try explicitly sizing it with setSceneRect
Almost.
jsfiddle.net/q0xn0fkr
PS Sorry for the broken link.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question