Use QPainter::setWindow() and QPainter::setViewport() to inform Qt about logical and physical coordinates respectively. You can also use GraphicsView with a scene that has dimensions reflecting the logical coordinates that you want to have.
Use QPainter::setWindow() and QPainter::setViewport() to inform Qt about logical and physical coordinates respectively. You can also use GraphicsView with a scene that has dimensions reflecting the logical coordinates that you want to have.
doberkofler (25th April 2010), Toniy (5th April 2016)
Bookmarks