QLineSeries Class
QLineSeries 类以折线图表示数据。更多
Header: | #include <QLineSeries> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
qmake: | QT += graphs |
在 QML 中: | LineSeries |
继承: | QXYSeries |
- 所有成员的列表,包括继承成员
- QLineSeries 是Qt Graphs C++ Classes for 2D 的一部分。
公共函数
Qt::PenCapStyle | capStyle() const |
QPointF | dataPointCoordinatesAt(qreal x, qreal y) |
void | setCapStyle(Qt::PenCapStyle newCapStyle) |
void | setWidth(qreal newWidth) |
qreal | width() const |
信号
void | capStyleChanged() |
void | widthChanged() |
成员函数文档
[invokable]
QPointF QLineSeries::dataPointCoordinatesAt(qreal x, qreal y)
返回转换为数据点坐标的x 和y 渲染坐标。
注: 可通过元对象系统和 QML 调用此函数。请参见Q_INVOKABLE 。
© 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.