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

Additional Inherited Members

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);

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().

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support