ColorGradientStop QML Type
定义ColorGradient 中某个位置的颜色。更多
| Import Statement: | import QtDataVisualization 1.11 |
| Since: | QtDataVisualization 1.0 |
属性
详细说明
定义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.