QLegendData Struct

QLegendData 结构包含要在图例标记上显示的信息。更多

头文件: #include <QLegendData>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
在 QML 中: LegendData

属性

详细说明

在集合和标记之间建立视觉关联所需的信息包括颜色、边框颜色和集合名称等属性。

另请参阅 QLineSeries,QSplineSeries,QScatterSeries,QBarSeriesQXYSeries

属性文档

borderColor : const QColor

该属性用于保存图例标记的边框颜色。

color : const QColor

该属性用于保存图例标记的颜色。

label : const QString

该属性包含图例标记的名称。

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