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

devicePixelRatio not supported by QQmlImageProvider

    XMLWordPrintable

    Details

    • Platform/s:
      iOS/tvOS/watchOS
    • Commits:
      428b92583ee2102c7ef16776a9b7785df7ff4e2c

      Description

      I implement my own image provider, and on iOS devices with a devicePixelRatio of 2, the images look blurry.

      The sourceSize on the QML side is defined in "non-retina" dimensions. The default way of implementing QQuickImageProvider::requestImage() will return an image of that size which will appear blurry on the iPhone/iPad.

      See attached example.

      And no matter which kind of trick I try in QQuickImageProvider::requestImage(), I am not able to see a crisp image in my QML scene.

      Is there a way of handling this properly (ideally on the C++ side)? Or is devicePixelRatio not supported by QQmlImageProvider?

        Attachments

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

          Activity

            People

            • Assignee:
              sorvig Morten Sørvig
              Reporter:
              portale Alessandro Portale
            • Votes:
              6 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes