[Qt-interest] Is there any mapping mode support in Qt Graphics Framework to map logical co-ordinates to physical co-ordinates

Mihail Naydenov mlists at ymail.com
Mon Jan 10 16:39:16 CET 2011


I think not in a straightforward way. You can access the screen in pixels, then 
you can try to query the QPaintDevice::physical/logicalDpi (QWidget is a 
paintDevice, so try to query the graphics scene view's viewport() widget for 
these)
and compute real word coords.

MihailNaydenov

PS I just noticed you want to *control* the dpi... I dont think it is possible, 
reading the docs for QPaintDevice the metrics are read only it seems...

>
>From: AK <qtbond007 at gmail.com>
>To: qt-interest at qt.nokia.com
>Sent: Mon, January 10, 2011 9:52:53 AM
>Subject: [Qt-interest] Is there any mapping mode support in Qt Graphics 
>Framework to map logical co-ordinates to physical co-ordinates
>
>Hello,
>
>
>I wish to control number of logical coordinates per physical inch. Is there any 

>direct support in Qt Graphics framework for this?
>
>
>AK


      



More information about the Qt-interest-old mailing list