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

Glow effect cuts off the bottom and top

    XMLWordPrintable

Details

    • All

    Description

      Using the Glow effect the same way as it is in the documentation, results in an image in which the top and the bottom of it is cut.

      import QtQuick 2.6
      import QtQuick.Window 2.2
      import QtGraphicalEffects 1.0
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
          color: "black"
          Image {
              id: imageSource
              source: "file:/home/kapinter/tmp/qt-everywhere-src-5.12.0-libpng/qtgraphicaleffects/tests/manual/testbed/images/butterfly.png"
              anchors.centerIn: parent
          }
      
          Glow {
              id: effect
              anchors.fill: imageSource
              color: "white"
              spread: 1.0
              radius: 8
              samples: radius*2+1
              visible: true
              source: imageSource
          }
      }
      
      

      Please check the attached picture to check the difference.

      Attachments

        1. alts.qml
          2 kB
        2. butterfly-glow-problem-cut.png
          butterfly-glow-problem-cut.png
          142 kB
        3. main.qml
          1 kB
        4. qtbug74834.zip
          9 kB
        For Gerrit Dashboard: QTBUG-74834
        # Subject Branch Project Status CR V

        Activity

          People

            vgt Eirik Aavitsland
            karimpinter Karim Pinter (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes