PDA

View Full Version : QPainterPath horizontal flip



bunjee
28th October 2007, 20:05
Hello,

I'd like to flip horizontaly a QPainterPath.
Is is possible with a QMatrix ?

Thanks.

marcel
28th October 2007, 20:09
Yes, but you must apply it on the painter, not on the painter path.
But you can also use QPainter::rotate and scale.
But:


QMatrix m;
m.scale(-1.0, -1.0);
painter.setMatrix(m);
//draw the painter path

bunjee
28th October 2007, 20:17
Thank you,

That should do the job.