Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-72

SVG image display by Image QML have artifacts on desktop and STM32F7

    XMLWordPrintable

Details

    • All
    • QUL Sprint 1.1/2022, QUL Sprint 1.2/2021, QUL Sprint 1.3/2022

    Description

      SVG display and then scaling have artifacts on desktop and STM32F7.
      If SVG image is converted first to PNG, artifacts are not displayed. There may be issue in conversion SVG to RGB.

      import QtQuick 2.0
      
      Rectangle {
          width: 800
          height: 600
      
          Image {
              anchors.centerIn: parent
              source: "cup-of-coffee.svg"
              width : 100
              height: 100
              scale: 1
      
              MouseArea
              {
                  anchors.fill: parent
                  onClicked: iScaleAnimation.running=true
      
              }
      
              NumberAnimation on scale {from: 1; to : 3; duration: 1000;running: false;id: iScaleAnimation}
          }
      
      
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            amitnainawat Amit Nainawat
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: