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

DropShadow no longer works in layer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.6.0 RC
    • 5.6.0 Alpha
    • None
    • Latest 5.6 branch
    • 2f0e5e726d76b8ad5a0e9b07aeb57006490e18b4

    Description

      The following code used to display a rectangle with a shadow, but after https://codereview.qt-project.org/#/c/138342/ nothing shows up.

      import QtQuick 2.5
      import QtQuick.Window 2.2
      import QtGraphicalEffects 1.0
      
      Window {
          width: 200
          height: 200
          visible: true
      
          Rectangle {
              width: 50
              height: 50
              radius: 5
              color: "tomato"
              anchors.centerIn: parent
      
              layer.enabled: true
              layer.effect: DropShadow {
                  verticalOffset: 3
                  horizontalOffset: 3
                  color: "gray"
                  spread: 0.5
                  samples: 15
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              jpnurmi J-P Nurmi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes