I draw few rectangles inside the QGraphicsView
; I use custom stipple pattern for these by creating a QBrush
with my QPixmap
. This gets displayed with the default zoom level as expected.
When I call view->scale()
, the rectangles show up bigger or smaller as I expected. However Qt has scaled the individual bits of the stipple pattern which is not expected; I expected it to draw the larger or smaller rectangle again with the brush.
Eg.
If I had used a stipple pattern with one pixel dot and pixel space, after zooming in, I want to see a larger rectangle but I want the same stipple pattern with same pixel gaps. Is this achievable somehow? Thanks.