Hi
His there a way to change de default coordinate system of a QPaintDevice so that if works like a Cartesian coordinate system in QPainter, with (0,0) as the center?
Hi
His there a way to change de default coordinate system of a QPaintDevice so that if works like a Cartesian coordinate system in QPainter, with (0,0) as the center?
Hi,
Take a look at Coordinate System on Window-Viewport Conversion http://doc.qt.io/qt-4.8/coordsys.html.
Last edited by ^NyAw^; 27th February 2013 at 11:30.
Òscar Llarch i Galán
Qt Code:
p.translate(width()/2, height()/2); p.scale(1, -1);To copy to clipboard, switch view to plain text mode
Note that such transformations will slow down drawing.
graciano (27th February 2013)
Bookmarks