Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.15.8
Description
When printing QGraphicsView to a PDF some of the items seem to be clipped quite aggressively to the point that they're missing completely from the print output. As seen in the attached image sample.png, items and text that should've been included in the PDF but be clipped are completely gone.
The clipView (QGraphicsView) on the screen clips correctly (regardless of the QGraphicsItem::ItemClipsChildrenToShape flag). It only shows the correctly clipped sub rect of the drawingScene (QGraphicsScene).
It is only when QGraphicsView::render is run on the layoutView that clipping to the QGraphicsView rect is completely ignored. I am not sure what the new behavior of the QGraphicsItem::ItemClipsChildrenToShape flag in 5.15.8 really does as suddenly complete items are gone instead of clipped. And if you look at the texts for each of the items, some of them are cut off at various points while others are completely removed even if they are not close to the view boundary
Steps to reproduce the problem:
- Run the attached project.