Qt 5 Compatibility APIs: Graphical Effect QML Types
QtGraphical Effects模块提供了一组 QML 类型,用于为用户界面添加视觉效果出众且可配置的特效。特效是可视化项目,可作为用户界面组件添加到Qt Quick 用户界面中。
要使用该模块中的类型,请用下面一行导入该模块:
import Qt5Compat.GraphicalEffects
注: 提供 QtGraphical Effects 模块是为了与为 Qt 5 编写的应用程序兼容。
使用混合模式合并两个源项 | |
调整亮度和对比度 | |
通过应用叠加色改变源项的颜色 | |
在 HSL 色彩空间中设置颜色 | |
绘制锥形渐变 | |
降低颜色的饱和度 | |
在指定方向上应用模糊效果 | |
根据给定的位移贴图移动源项目的像素 | |
在源项后面生成柔和阴影 | |
对一个或多个源项应用快速模糊效果 | |
改变源项的亮度 | |
应用更高质量的模糊效果 | |
生成模糊和着色的源图像,并将其放置在原图像后面,让人感觉源在发光 | |
在 HSL 色彩空间中更改源项目的颜色 | |
在源内生成着色的模糊阴影 | |
调整 RGBA 色彩空间中的色阶 | |
绘制线性渐变 | |
应用不同密度的模糊效果 | |
用另一个项目对源项目进行遮罩 | |
在项目中心点周围的圆形方向上应用定向模糊效果 | |
绘制径向渐变 | |
生成一个模糊并着色的矩形,给人一种源在发光的感觉 | |
重复模糊,提供强烈的模糊效果 | |
用另一个项目屏蔽源项目,并应用阈值 | |
向源项中心点应用定向模糊效果 |
© 2025 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.