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

Image fillMode and ShaderEffect interact in unexpected ways

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.5.0
    • Quick: SceneGraph
    • None
    • af0a53d89835baa86698b40ac845024ee49e71b1, 8feca74deda0abca0bc1787e18d227c2a3d578e7

    Description

      ShaderEffect does not display Image as-it-appears in the presence of custom fillModes. I assume this is due to internal optimizations (grabbing the texture from an Image directly)

      The following example demonstrates the issue:

      import QtQuick 2.0
      
      Row {
          Image {
              id: logo
              width: 200; height: 100
              source: "qt-logo.jpg"
              fillMode: Image.PreserveAspectCrop
          }
          ShaderEffect {
              width: 200; height: 100
              property var source: logo
          }
      }
      

      In this example, the Image and ShaderEffect version display differently, as shown in the attached screenshot. I would have expected them to display identically.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes