Qt 5 Compatibility APIs: Graphical Effect QML Types
Qt 的“Graphical Effects”模块提供了一组 QML 类型,用于为用户界面添加视觉效果出众且可配置的效果。这些效果是可作为 UI 组件添加到Qt Quick 用户界面中的视觉元素。
要使用该模块中的类型,请使用以下代码行导入该模块:
import Qt5Compat.GraphicalEffects注意: 提供 QtGraphical Effects 模块 是为了与针对 Qt 5 编写的应用程序保持兼容性。
使用混合模式将两个源项融合 | |
调整亮度和对比度 | |
通过应用叠加颜色来改变源项的颜色 | |
在 HSL 色彩空间中设置颜色 | |
绘制锥形渐变 | |
降低颜色的饱和度 | |
沿指定方向应用模糊效果 | |
根据给定的位移图移动源对象的像素 | |
在源对象背后生成柔和阴影 | |
对一个或多个源项目应用快速模糊效果 | |
调整源对象的亮度 | |
应用更高质量的模糊效果 | |
生成源对象的模糊且着色图像,并将其置于原始图像背后,营造出源对象发光的视觉效果 | |
在 HSL 色彩空间中调整源对象的颜色 | |
在源对象内部生成一个带色彩且模糊的阴影 | |
在 RGBA 色彩空间中调整色阶 | |
绘制线性渐变 | |
应用强度可变的模糊效果 | |
使用另一个对象对源对象进行蒙版处理 | |
在对象中心点周围沿圆形方向应用方向性模糊 | |
绘制径向渐变 | |
生成一个模糊且着色的矩形,营造出源对象仿佛在发光的效果 | |
反复进行模糊处理,产生强烈的模糊效果 | |
使用另一个对象对源对象进行蒙版处理,并应用阈值 | |
沿源对象中心点方向应用方向性模糊效果 |
© 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.