ShapeGradient QML Type

形状填充渐变的基本类型。更多

Import Statement: import QtQuick.Shapes 1.9
Inherits:

Gradient

Inherited By:

ConicalGradient, LinearGradient, and RadialGradient

属性

详细说明

这是一个用于渐变的抽象基类,如LinearGradient ,不能直接创建。它对Gradient 进行了扩展,并具有扩散模式等属性。

属性文档

spread : enumeration

指定如何填充渐变区域外的区域。默认值为ShapeGradient.PadSpread

常量说明
ShapeGradient.PadSpread用最接近的停止色填充该区域。
ShapeGradient.RepeatSpread在渐变区域外重复渐变。
ShapeGradient.ReflectSpread在渐变区域外反射渐变。

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