I have a QGraphicsScene on which I show a video . I have another red colour rectangle which is QGraphicsItem. This rectangle (QGraphicsPixmapItem) lies on the image on QGraphicsScene. I have a yellow rectangular box (QGraphicsItem) which I use to zoom area on the scene.
I show the part of area under yellow box by cropping the video to the respective co ordinates in another View window. However if the zoom window overlaps with red rectangle I want to show the part of red rectangle under the zoom window.
How can I do this?

Thank you.