本页内容

ConicalGradient QML Type

锥形渐变。更多...

Import Statement: import QtQuick.Shapes 1.12
Inherits:

ShapeGradient

属性

详细说明

在“形状”项目中,锥形渐变会以中心点为基准,沿逆时针方向对颜色进行插值。

注意: spread mode 设置对锥形渐变无效。

注意:ConicalGradient 仅在与“形状”项结合使用时受支持。它与Rectangle 不兼容,因为后者仅支持Gradient 。

另请参阅 QConicalGradient 。

属性文档

angle : real

此属性定义了锥形渐变的起始角度。数值以度为单位(0-360)。

centerX : real

centerY : real

这些属性定义了锥形渐变的中心点。

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