Answer the question
In order to leave comments, you need to log in
How to draw on QGraphicsScene without overlapping already drawn Items without clipping?
Hello.
After drawing QGraphicsItem (items) on QGraphicsScene (stage), it is necessary to paint over the entire remaining space of the scene with one color (in that order, first draw the items, then paint over the rest of the scene). At first I wanted to use clipping, but QtAssistant says: "...you should generally avoid using clipping if you can (eg, if your items always draw inside boundingRect() or shape() boundaries, clipping is not necessary).". If I understand correctly, in the case when the items are drawn only inside the boundingRect, you can somehow do without clipping. Can you please tell me if this is true and how to do it? Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question