View Full Version : QPainterPath horizontal flip
bunjee
28th October 2007, 21:05
Hello,
I'd like to flip horizontaly a QPainterPath.
Is is possible with a QMatrix ?
Thanks.
marcel
28th October 2007, 21: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, 21:17
Thank you,
That should do the job.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.