Hello,
I'd like to flip horizontaly a QPainterPath.
Is is possible with a QMatrix ?
Thanks.
Hello,
I'd like to flip horizontaly a QPainterPath.
Is is possible with a QMatrix ?
Thanks.
Yes, but you must apply it on the painter, not on the painter path.
But you can also use QPainter::rotate and scale.
But:
Qt Code:
QMatrix m; m.scale(-1.0, -1.0); painter.setMatrix(m); //draw the painter pathTo copy to clipboard, switch view to plain text mode
Last edited by marcel; 28th October 2007 at 20:17.
bunjee (28th October 2007)
Thank you,
That should do the job.
Bookmarks