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

The "sourceSize" property value of the "Image" item is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.15.2
    • None
    • All

    Description

      When the "sourceSize" property not set, and current window devicePixelRatio > 1.0, and the source image support hidpi.

      If

      My title

      devicePixelRatio = 2.0
      image file name = "test@2x.png"
      image width = 200

      In this case, the sourceSize.width read should be 100, but is 200 now.

      test codes:
      test_image.zip

      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
              zccrs JiDe Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change