【发布时间】:2015-01-19 19:41:35
【问题描述】:
是否可以模糊另一个项目后面的项目?
示例:模糊图像的一部分(如 qml - parent.centerIn: image)
我想要类似的东西:
Image { id: img
anchors.fill: parent
source: "bug.png"
Item { id: info
anchors.centerIn: parent
height: 200
width: 200
Text {
text: "HAMMER TIME"
color: "white"
}
/* BLUR CODE HERE TO BLUR BACKGROUND OF THIS ITEM */
/* which is a part of "bug.png" image with 200x200 size */
/* and offset equals to "info.x" and "info.y" */
}
}
这个问题会影响任何shader effect,因为官方文档没有这个问题的答案,而且我的所有尝试都没有成功 - 只能模糊整个项目,但不能模糊它的一部分。
【问题讨论】:
标签: javascript qt qml effects