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

sourceSize documentation is not accurate for dpi-scaled screens

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.6, 5.13.2
    • Fix Version/s: None
    • Labels:
      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

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

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              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