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

Scaling errors of svg asset on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.3
    • None
    • Tested on Windows 11 virtual machine and Qt 6.8.2 (MSVC2022)
    • Windows

      Scaling of svg asset with implicit size does not work correctly.

      How to reproduce:

      • Make sure Windows scaling is 100%
      • Launch icontest (attached) -> shows rectangle and circle icon with matching sizes
      • Keep application running and switch Windows scaling to 125%
      • Excpected:
        • Have Rectangle and circle match also on 125% scaling
      • Actual:
        • Rectangle has scaled but circle has not

      With 150% scaling things work again. And 175% not.

      If I close the application and launch it again with Windows scaling already being 125%, it works correctly. But similar thing then happens in other direction. I.e. while app is running, switch Windows scaling back to 100% -> Rectangle and circle icon scaling do not match anymore.

      If I use explicit size in QML to set also Image size to 100x100, scaling works correctly. So something wrong with the implicit size coming from the svg asset.

        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
            heikkih Heikki Haveri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes