Distortion appears after adding DropShadow. Why do distortions appear?
Or maybe there is another way to add shadow to the elements? Here is the application full code: main.qml - main delegate - propertiesview
delegate: PropertiesView {
id: delegateElement
anchors.left: parent.left
anchors.leftMargin: 10
anchors.right: parent.right
anchors.rightMargin: 10
background: Rectangle {
id: elementDevice
implicitWidth: 100
implicitHeight: 40
opacity: enabled ? 1 : 0.3
color: delegateElement.down ? "#dddedf" : "#eeeeee"
}
DropShadow {
anchors.fill: parent
cached: true
horizontalOffset: 3
verticalOffset: 3
radius: 8.0
samples: 16
color: "#80000000"
source: parent
}
}
}