QLineSeries Class
QLineSeries 类用于以折线图形式展示数据。更多内容...
| Header: | #include <QLineSeries> |
| In QML: | LineSeries |
| Inherits: | QXYSeries |
| Inherited By: | |
| Status: | Deprecated |
该类已弃用。我们强烈建议不要在新代码中使用它。
公共函数
| QLineSeries(QObject *parent = nullptr) | |
| virtual | ~QLineSeries() |
重新实现的公共函数
| virtual QAbstractSeries::SeriesType | type() const override |
详细说明
折线图用于将信息以一系列由直线连接的数据点的形式呈现。

创建一个基本的折线图非常简单:
QLineSeries* series = new QLineSeries();
series->append(0, 6);
series->append(2, 4);
...
chart->addSeries(series);成员函数文档
[explicit] QLineSeries::QLineSeries(QObject *parent = nullptr)
创建一个空的系列对象,该对象是parent 的子对象。当该系列对象被添加到 QChartView 或 QChart 实例中时,所有权将随之转移。
[virtual noexcept] QLineSeries::~QLineSeries()
销毁该对象。添加到 QChartView 或 QChart 实例中的系列由这些实例拥有,并在实例被销毁时被删除。
[override virtual] QAbstractSeries::SeriesType QLineSeries::type() const
重新实现了属性QAbstractSeries::type 的访问函数。
© 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.