PDA

View Full Version : Coordinates in millimeters



dreamer
30th April 2008, 21:34
How can i translate the scene coordinate on millimeters?
Is there any particular Qt function?
I don't find any.......

pherthyl
1st May 2008, 01:29
Millimetres on the screen? Well the way to convert is generally by using the DPI of the paint device, which will give you pixels/inch in x and y directions. However you can't rely on the DPI of the screen to actually be correct. Most windows comps have a DPI of 96, which is not always the correct one. If you are printing you can do this more accurately, as the paint device for the printer will report the correct DPI, and you can scale your drawing to get the desired physical dimensions.