创建模糊特效

要在Qt Quick Effect Maker 中创建模糊效果:

  1. 在节点树中添加一个FastBlur 节点。
  2. 在节点树中添加一个“BlurHelper ”节点。所有包含模糊效果的特效都需要使用“BlurHelper ”节点。

    包含 Main、BlurHelper、FastBlur 和 Output 节点并呈垂直连接的节点图

  3. 选中“FastBlur ”节点,在设置中调整“fastBlurAmount ”的数值以控制模糊程度。

    应用了模糊效果的 Qt 徽标

调整项目边框

该效果显示时似乎被裁剪了。您需要调整项目边框:

  1. 选择“十字图标 ”以显示项目边框。

    带有模糊效果且项目边框可见的 Qt 徽标

  2. 转到“Edit ” > “Project Settings ”。
  3. 将项目各边的内边距均设置为 100。

    “项目设置”对话框中,项目间距设置为 100

现在,您可以看到完整的模糊效果。

带有完整模糊效果和扩展内边距的 Qt 徽标

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.