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

Downscaled SVG button icons are blurry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.0.0 RC
    • Quick: Controls 2
    • None
    • 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
          Jeremy Kim
        2. main.qml
          0.5 kB
          Jeremy Kim
        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
            jeremykim232323 Jeremy Kim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes