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

sourceSize documentation is not accurate for dpi-scaled screens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.6, 5.13.2
    • None

    Description

      https://doc.qt.io/qt-5/qml-qtquick-image.html#sourceSize-prop says "[setting sourceSize to 1024x1024] ensures the image in memory is no larger than 1024x1024 pixels".

      Looking at QQuickImageBase::load, it seems that sourceSize is scaled by devicePixelRatio. so for svgs and image urls (not entirely sure what that includes, see QQuickImageBasePrivate::updateDevicePixelRatio), this statement is not correct.

      Generally, any hint in the docs how that property works together with dpi scaling would be appreciated.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              karyon karyon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes