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

Downscaled SVG button icons are blurry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0 RC
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      If you have a 24x24 SVG icon and set the icon.width and icon.height properties to 16 to achieve a 16x16 icon the result will be blurry. If you don't use the icon properties and hack around with the control padding and spacing it will be scaled properly but that approach isn't exactly intuitive. The scaling also works properly with an IconImage that has its sourceSize set to 24x24 and its width and height set to 16x16. Maybe the Icon object needs to gain a sourceSize property instead of assuming it from the width and height?

        Attachments

        1. example.svg
          0.2 kB
        2. main.qml
          0.5 kB
        3. screenshot-2020-12-01_11-23-17.png
          screenshot-2020-12-01_11-23-17.png
          1 kB
        4. screenshot-2020-12-01_11-33-01.png
          screenshot-2020-12-01_11-33-01.png
          2 kB
        5. screenshot-2020-12-01_11-41-56.png
          screenshot-2020-12-01_11-41-56.png
          2 kB
        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:
            jeremykim232323 Jeremy Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes