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

Icons rendered with IconLabel component looks pixelated on HiDpi screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2
    • Quick: Controls 2
    • None
    • iOS/tvOS/watchOS

    Description

      Here's example with Button, screenshot and code

      I have two buttons with icon and text, first normal and second rendered 3x bigger (my iPhone's pixel ratio) and then downscaled to normal size. Second one's icon looks sharp as expected

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Controls.impl
      
      Window {
          visible: true
          
          Column {
              anchors.centerIn: parent
              
              Button {
                  icon.name: "chevron.left"
                  icon.height: 10
                  icon.width: 10
                  text: "go home("
                  font.pixelSize: 20
              }
          
              Button {
                  scale: 1/Screen.devicePixelRatio
                  transformOrigin: Item.TopLeft
                  icon.name: "chevron.left"
                  icon.height: 10*Screen.devicePixelRatio
                  icon.width: 10*Screen.devicePixelRatio
                  text: "go home("
                  font.pixelSize: 20*Screen.devicePixelRatio
              }
          }
      }
      

      BugDemo.qml

       

       

       

      Attachments

        1. BugDemo.qml
          0.7 kB
          Evgeniy Nuromskiy
        2. IMG_4618.png
          106 kB
          Evgeniy Nuromskiy
        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
            alteve3di Evgeniy Nuromskiy
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes