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

sourceSize documentation is not accurate for dpi-scaled screens

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes