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

HiDPI state not exposed to CSS media queries and image sets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.1.1, 5.2.0
    • Fix Version/s: 5.3.0
    • Component/s: WebKit
    • Labels:
      None
    • Environment:
      OSX 10.9, Qt 5.1.1, Qt 5.2.0

      Description

      JS window.devicePixelRatio returns 1 on retina displays with Qt 5.1.1 and Qt 5.2.0;

      "@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
      only screen and (min-device-pixel-ratio: 1.5)" also fails to work.

      Build fancybrowser app from Qt examples and open attached html on Mac with retina display. Compare to results in Chrome and Safari.

        Attachments

        1. Patch
          5 kB
        2. Patch
          0.8 kB
        3. webkit_retina_test.zip
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              sergei.nevdakh Sergei Nevdakh
            • Votes:
              7 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes