PDA

View Full Version : QPrinter bug?



lni
23rd February 2009, 04:52
Hi,

I have a brush with custom QBitmap, as shown. Inverted scale was applied to the QBrush to remove scaling effect on the QBitmap.



QTransform xf = painter->transform();

QTransform brushXF;
brushXF.scale( 1 / xf.m11(), 1 / xf.m22() );

QBrush bs = brush();
bs.setTransform( brushXF );

painter->setBrush( bs );


In screen, the graphics look fine, but when do QPrinter, the inverted scaling on QBrush was lost, see attachment. Do I do something wrong?