本页内容

ColorGradientStop QML Type

定义ColorGradient 中某个位置的颜色。更多...

Import Statement: import QtDataVisualization 1.12
Since: QtDataVisualization 1.0
Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

定义ColorGradient 中某位置的颜色。

另请参阅 ColorGradient 。

属性文档

color : color

“color”属性用于描述此渐变停点的颜色。

默认颜色为黑色。

注意: 渐变中不支持透明度 ,这将导致未定义的行为。

另请参阅 ColorGradient 。

position : real

“position” 属性描述了此渐变停点的位置。

默认位置为 0.0。

另请参阅 ColorGradient 。

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