QSplineSeries Class

Series type used to store data needed to draw a spline. More...

Header: #include <QSplineSeries>
Instantiated By: SplineSeries
Inherits: QLineSeries

Public Functions

QSplineSeries(QObject *parent = Q_NULLPTR)

Reimplemented Public Functions

virtual QAbstractSeries::SeriesType type() const

Additional Inherited Members

Detailed Description

Series type used to store data needed to draw a spline.

QSplineSeries stores the data points along with the segment control points needed by QPainterPath to draw spline Control points are automatically calculated when data changes. The algorithm computes the points so that the normal spline can be drawn.

Creating basic spline chart is simple:

QSplineSeries* series = new QSplineSeries();
series->append(0, 6);
series->append(2, 4);

Member Function Documentation

QSplineSeries::QSplineSeries(QObject *parent = Q_NULLPTR)

Constructs empty series object which is a child of parent. When series object is added to a QChart instance then the ownerships is transferred.


Destroys the object.

[virtual] QAbstractSeries::SeriesType QSplineSeries::type() const

Reimplemented from QAbstractSeries::type().

Returns the type of the series

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