Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
4.7.1
-
None
-
Maemo 5, Harmattan
Description
QPaintDevice::physicalDpiX() and QPaintDevice::physicalDpiY() return wrong (hard-coded?) values on Maemo 5 and Harmattan.
The use case for this is was to expose a 'mm' property to QML by calling viewer.rootContext()->setContextProperty("mm",viewer.physicalDpiX()/25.4); on QDeclarativeView (http://twitter.com/#!/hhartz/status/11698532553588736).
Seems to work ok at least on desktop and Symbian^3.