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

SVG Icons strentched in QListViewWidget items

    XMLWordPrintable

Details

    • Windows
    • 298e81192 (dev), a223eca4a (6.9)

    Description

      The icons set in QListWidgetItem appear stretched by 4 pixels when using the Windows native theme. other themes are not affected.
      Native (Windows 11):

      Fusion:

      I've found that Qt alters the size of rectangles used for SE_ItemViewItemDecoration, expanding it by 4 pixels, resulting in the stretched icons

      I've attached a sample app, by default it will run using the native theme, an argument of -f can be used to force fusion theme

      I've attached a patch that removes this adjustment, however, I do not know if this will cause other issues

      Attachments

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

        Activity

          People

            santosh.kumar Santosh Kumar
            thelastrar Alastair Barnes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes