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

QML Image not visible when QT_QUICK_BACKEND = "software" and coloring effect is applied

    XMLWordPrintable

Details

    • macOS

    Description

      When 

      qputenv("QT_QUICK_BACKEND", "software");

      is set in the .cpp file.

      And coloring is applied using MultiEffect 

      Image {
              id: icon      
              visible: false  
              height: 64
              width: 64
              sourceSize.height: 64        
              fillMode: Image.PreserveAspectFit        
              source: Qt.url("./settings.svg")
          }    
      MultiEffect {
              source: icon
              anchors.fill: icon
              colorizationColor: "blue"
              colorization: 1
              brightness: 1
            } 

      The image becomes invisible. Without MultiEffect or the QT_QUICK_BACKEND flag it works fine.

      Also when using Qt5Compat.GraphicalEffects with ColorOverlay

       

       

      Image {
              id: icon
              height: 64
              width: 64
              sourceSize.height: 64
              fillMode: Image.PreserveAspectFit
              source: Qt.url("./settings.svg")
              layer {
                  enabled: true
                  effect: ColorOverlay {
                      color: "blue"
                  }
              }
          }
      

      The same result. The image becomes invisible. Without ColorOverlay or the QT_QUICK_BACKEND flag it works fine.

       

      Attachments

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

        Activity

          People

            kagro Kaj Grönholm
            markostanke Marko Stanojevic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes