Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16682

QPaintDevice::physicalDpiX/Y return wrong DPI on Maemo and Harmattan

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.7.1
    • GUI: Painting
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            latej Lauri Jääskelä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes