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

QML Image component doesn't apply devicePixelRatio for network sources

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.1
    • None
    • All

    Description

      Loading the same image through different urls results in different behavior.

      QML Image source:

      • "/somefolder/image@2x.png" -> devicePixelRatio = 2.0
      • "http://localhost:7000/image@2x.png" -> devicePixelRatio = 1.0
      • "http://localhost:7000/image%402x.png" -> devicePixelRatio = 1.0

      All variants should result in the devicePixelRatio being 2.0. The URL-encoded variant should also be respected since the "@" symbol is not allowed in the path.

      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
              gri Christoph Keller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes