Important: Please read the Qt Code of Conduct -

QGraphicsView scenerect to pixmap Viceversa

  • Every line is a graphic item in the following image I have rendered the scene contents to a pixmap to solve a performance issue while moving QGraphicsview through arrow keys.

    SO when Moving arrow keys, I am drawing pixmap instead of painting all items on the view as there is no change in the scene change. So the user will see the pixmap. WHen user try to edit it I will switch to normal viewport painting. The problem is when shuffling between pixmap painting to normal painting there is some pixel alignment is observed as the device transformation different in Pixmap painting and default viewport painting. How can solve this issue? So the user could not notice the switch between pixmap and all items painting.

Log in to reply