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

Bi-linear filtering not always working when sourcing Images directly as textures

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.0.0
    • Quick: SceneGraph
    • None
    • I693a44e87fb87bc92e1647f6158d23986f98623a

    Description

      In the example below, the effect looks smooth at first but after clicking (changing the source) it becomes aliased (the other Image's smooth:true is not resulting in bi-linear filtering)

      import QtQuick 2.0
      
      Rectangle {
          width: 400
          height: 400
          color: "white"
      
          Image {
              id: src
              source: "images/butterfly.png"
              anchors.fill: parent
              smooth: true
              visible: false
          }
      
          Image {
              id: src2
              source: "images/butterfly.png"
              anchors.fill: parent
              smooth: true
              visible: false
          }
      
          ShaderEffect {
              id: effect
              property variant source: src
              anchors.fill: parent
          }
      
          MouseArea {
              anchors.fill: parent
              onClicked: effect.source = src2
          }
      }
      
      

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            kimgronholm Kim Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes