Is there a simple way to change the coordinate system of QPainter so that the logical coordinates start from the lower left corner instead of the upper left corner?
Entry number: 776 - Is there a simple way to change the coordinate system of QPainter so that the logical coordinates start from the lower left corner instead of the upper left corner?
Answer:
There is no direct way to do this, but what you can do is to define your scale matrix and apply it to all primitives and positions instead of applying it to QPainter itself. Alternatively, you can set the scale matrix on the painter and draw all your primitives, then unset the transformation and draw all your text.


