ColorGradient QML Type
定义颜色渐变。更多
进口声明: | import QtDataVisualization 1.9 |
自 | QtDataVisualization 1.0 |
属性
- stops : list<ColorGradientStop>
详细说明
渐变是由两种或两种以上的颜色定义的,它们将被无缝混合。
这些颜色被指定为一组ColorGradientStop 子项,每个子项都定义了梯度上从 0.0 到 1.0 的一个位置和一种颜色。每个ColorGradientStop 的位置通过设置其position 属性来定义;其颜色通过color 属性来定义。
没有任何渐变止点的渐变返回QLinearGradient 默认值,即 0.0 处为黑色,1.0 处为白色。
另请参阅 ColorGradientStop 。
属性文档
停止: list<ColorGradientStop> |
© 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.