Qt 5 Compatibility APIs: Graphical Effect QML Types

QtGraphical Effects模块提供了一组 QML 类型,用于为用户界面添加视觉效果出众且可配置的特效。特效是可视化项目,可作为用户界面组件添加到Qt Quick 用户界面中。

要使用该模块中的类型,请用下面一行导入该模块:

import Qt5Compat.GraphicalEffects

注: 提供 QtGraphical Effects 模块是为了与为 Qt 5 编写的应用程序兼容。

Blend

使用混合模式合并两个源项

BrightnessContrast

调整亮度和对比度

ColorOverlay

通过应用叠加色改变源项的颜色

Colorize

在 HSL 色彩空间中设置颜色

ConicalGradient

绘制锥形渐变

Desaturate

降低颜色的饱和度

DirectionalBlur

在指定方向上应用模糊效果

Displace

根据给定的位移贴图移动源项目的像素

DropShadow

在源项后面生成柔和阴影

FastBlur

对一个或多个源项应用快速模糊效果

GammaAdjust

改变源项的亮度

GaussianBlur

应用更高质量的模糊效果

Glow

生成模糊和着色的源图像,并将其放置在原图像后面,让人感觉源在发光

HueSaturation

在 HSL 色彩空间中更改源项目的颜色

InnerShadow

在源内生成着色的模糊阴影

LevelAdjust

调整 RGBA 色彩空间中的色阶

LinearGradient

绘制线性渐变

MaskedBlur

应用不同密度的模糊效果

OpacityMask

用另一个项目对源项目进行遮罩

RadialBlur

在项目中心点周围的圆形方向上应用定向模糊效果

RadialGradient

绘制径向渐变

RectangularGlow

生成一个模糊并着色的矩形,给人一种源在发光的感觉

RecursiveBlur

重复模糊,提供强烈的模糊效果

ThresholdMask

用另一个项目屏蔽源项目,并应用阈值

ZoomBlur

向源项中心点应用定向模糊效果

© 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.