QSplineSeries Class
The QSplineSeries class presents data as spline charts. More...
Header: | #include <QSplineSeries> |
Instantiated By: | SplineSeries |
Inherits: | QLineSeries |
Public Functions
QSplineSeries(QObject *parent = nullptr) | |
virtual | ~QSplineSeries() |
Reimplemented Public Functions
virtual QAbstractSeries::SeriesType | type() const |
- 1 public function inherited from QLineSeries
- 39 public functions inherited from QXYSeries
- 15 public functions inherited from QAbstractSeries
- 31 public functions inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
- 7 properties inherited from QXYSeries
- 5 properties inherited from QAbstractSeries
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 17 signals inherited from QXYSeries
- 4 signals inherited from QAbstractSeries
- 2 signals inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
The QSplineSeries class presents data as spline charts.
A spline series stores the data points and the segment control points needed by QPainterPath to draw a spline. The control points are automatically calculated when the data changes. The algorithm computes the points so that the normal spline can be drawn.
The following code snippet illustrates how to create a basic spline chart:
QSplineSeries* series = new QSplineSeries(); series->append(0, 6); series->append(2, 4); ... chart->addSeries(series);
Member Function Documentation
QSplineSeries::QSplineSeries(QObject *parent = nullptr)
Constructs an empty series object that is a child of parent. When the series object is added to a QChart instance, the ownerships is transferred.
[virtual]
QSplineSeries::~QSplineSeries()
Deletes the spline series.
[virtual]
QAbstractSeries::SeriesType QSplineSeries::type() const
Reimplemented from QLineSeries::type().
© 2019 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.