本页内容

GradientStop QML Type

定义渐变中某位置的颜色。更多...

Import Statement: import QtQuick

属性

详细说明

另请参阅 Gradient 。

属性文档

color : color

position : real

“位置”和“颜色”属性描述了渐变中某个位置所使用的颜色,该位置由渐变停点表示。

默认位置为 0.0;默认颜色为黑色。

另请参阅 Gradient 。

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