QLineSeries Class
QLineSeries 类在折线图中显示数据。更多
Header: | #include <QLineSeries> |
In QML: | LineSeries |
Inherits: | QXYSeries |
Inherited By: |
公共函数
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 。
© 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.