本页内容

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 、QBarSeries 以及QXYSeries 。

属性文档

borderColor : QColor

此属性用于设置图例标记的边框颜色。

color : QColor

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

label : QString

该属性保存图例标记的名称。

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