How to get visible rectangle of QQuickPaintedItem inside ScrollView?
-
I have a QQuickPaintedItem which is inside of a ScrollView and I'd like to figure out the rectangular area which is actually being drawn to the screen so that I can cut out drawing stuff that is not visible. Is there a way to do this? QPainter->viewport() and QPainter->window() are returning the entire size of the comopnent, not just the rectangle that is visible.