6.0.0-rc4Source

QSplineSeries Class

The QSplineSeries class draws a smooth curve through its points. More…

Header#include <QSplineSeries>
CMaketarget_link_libraries(app PRIVATE Nt::Charts)
ModuleNt Charts C++ Classes
InheritsQLineSeries

List of all members, including inherited members

Public Functions

QSplineSeries(QObject *parent = nullptr)
~QSplineSeries()

Reimplemented Public Functions

Detailed Description

A spline series with its points shown

The curve passes through every point, and is made of cubic Bézier segments whose tangents follow the neighboring points.

See also QLineSeries.

Differences from Qt

The control points are computed by Nt, so a curve may differ slightly from Qt's.

Member Function Documentation

[explicit] QSplineSeries::QSplineSeries(QObject *parent = nullptr)

Constructs an empty spline series with the given parent.

[override] QSplineSeries::~QSplineSeries()

Destroys the series.

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

Reimplements QLineSeries::type().

Returns QAbstractSeries::SeriesTypeSpline.