Brush Fill Not Scaling in QGraphicsView
curtmantle last edited by
I am using a QGraphicsView to render a scene that I can zoom in and out of using setMatrix.
I have a QGraphicsItem derived class which draws a simple rectangle in the paint override and I wanted to try out the various fill styles that can be set on the Brush. If I set the Brush to have a diagonal fill style such as Qt::FDiagPattern, when I zoom in on the item the lines are rendered as dotted rectangles rather than a solid line. If I use a pen to simply draw a diagonal line on my item it works as I'd expect.
Is this simply a limitation of the fill patterns on QBrush or can I get them to render diagonal fills with a straight line somehow?