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

Quality of SVG icons in Qt Quick controls is dependent on control's dimensions

    XMLWordPrintable

    Details

      Description

      See attached screenshot and code. A simple SVG image is set as the icon on many Buttons (all with different dimensions).

      The SVG specifies a circle with diameter 32, and a viewport of 32x32. The icon size is set equal to the optimal viewport size (32 x 32) on all Buttons. Every Button is large enough such that no scaling of the image should occur.

      Actual outcome

      All icons are exactly 32 x 32, as expected.

      However, depending on the the exact dimensions of the parent Button, the icon might be rasterized a bit too big before getting cropped. This seems to occur when the Button dimensions are an odd number.

       

      Expected outcome

      All icons should look exactly the same, regardless of the Button dimensions.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mitch_curtis Mitch Curtis
            Reporter:
            skoh-qt Sze Howe Koh (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes