QCanvasGradientStop Struct
渐变色渐变。更多...
| 标题: | #include <QCanvasGradientStop> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS CanvasPainter) target_link_libraries(mytarget PRIVATE Qt6::CanvasPainter) |
| 自: | Qt 6.11 |
公共变量
相关的非成员
| QDataStream & | operator<<(QDataStream &stream, const QCanvasGradientStop &stop) |
| QDataStream & | operator>>(QDataStream &stream, QCanvasGradientStop &stop) |
详细说明
描述了gradient 中的一个断点。
成员变量文档
QColor QCanvasGradientStop::color
停止点的颜色。simplified_chinese (Mainland)
qreal QCanvasGradientStop::position
停止点的位置。
相关非会员
QDataStream &operator<<(QDataStream &stream, const QCanvasGradientStop &stop)
将梯度stop 写入给定的stream ,并返回对stream 的引用。
另请参阅 《Qt 数据类型的序列化》。
QDataStream &operator>>(QDataStream &stream, QCanvasGradientStop &stop)
从给定的stream 中读取渐变stop ,并返回对stream 的引用。
另请参阅 《Qt 数据类型的序列化》。
© 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.