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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

        1. test_image.zip
          17 kB
          chen zhang

          Issue Links

          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:
              zccrs chen 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