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

Named platform icons are blurry on macOS when displayed with IconImage/IconLabel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • Quick: Controls 2
    • None

    Description

      This affects all controls types that display icons, along with the new ContextMenu.

      Tested on a display with a DPR of 2.

      import QtQuick
      import QtQuick.Layouts
      import QtQuick.Controls.impl as ControlsImpl
      import QtQuick.Controls.Basic
      
      ApplicationWindow {
          id: window
          width: 400
          height: 400
          visible: true
      
          GridLayout {
              columns: 2
      
              ControlsImpl.IconImage {
                  id: iconImage
                  name: "edit-cut"
                  sourceSize: Qt.size(16, 16)
              }
              Label {
                  text: "IconImage - width: " + iconImage.width + " height: " + iconImage.height
              }
      
              ControlsImpl.IconLabel {
                  id: iconLabel
                  icon.name: "edit-cut"
                  icon.width: 16
                  icon.height: 16
              }
              Label {
                  text: "IconLabel - width: " + iconLabel.width + " height: " + iconLabel.height
              }
          }
      }
      

      Attachments

        1. quick2.zip
          8 kB
        2. quick2-1.zip
          22 kB
        3. Screenshot 2025-02-03 at 16.40.33.png
          Screenshot 2025-02-03 at 16.40.33.png
          265 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-133424
          # Subject Branch Project Status CR V

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change