属性
import QtQuick
import QtQuick.Effects
Rectangle {
//也可单独使用
RectangularShadow {
anchors.fill: parent
antialiasing: bool
//抗锯齿,默认 true
blur: real
//模糊,默认 10
cached: bool
//缓存,默认 false
//为提高性能,建议动画或动效时禁用
color: color
//阴影颜色,默认 黑色
material: item
//用来观察阴影范围
offset: vector2d
//阴影的位置偏移
//默认值为Qt.vector2d(0.0, 0.0) (无偏移)
radius: real
//阴影圆角
spread: real
//阴影扩散,非模糊扩散
z: -1
//至于父级底部
}
}