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

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

XMLWordPrintable

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

      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

        1. test_image.zip
          17 kB
          JiDe Zhang
        For Gerrit Dashboard: QTBUG-89734
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change