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

devicePixelRatio not supported by QQmlImageProvider

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 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

        For Gerrit Dashboard: QTBUG-38127
        # Subject Branch Project Status CR V

        Activity

          People

            sorvig Morten Sørvig
            portale Alessandro Portale
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            9 Vote for this issue
            Watchers:
            18 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes