This is strange as your example looks correct to me. Maybe "wysota" has an idea.
This is strange as your example looks correct to me. Maybe "wysota" has an idea.
Thanks for reply.
I resolved my problem in this way: taking in account printer resolution (hoping this is a general solution) :
QTransform TPiXEL = QTransform::fromScale(
painter.device()->physicalDpiX() / 25.400,
painter.device()->physicalDpiY() / 25.400);
painter.setWorldTransform(TPiXEL, false);
Thanks.
Last edited by _Jack_; 30th April 2010 at 15:36. Reason: updated contents
Are you now using setWorldTransform together with setWindow/setViewport or instead of the method suggested by wysota?
Bookmarks