IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QSplineSeries Class

The QSplineSeries class presents data as spline charts.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSplineSeries Class

  • Header: QSplineSeries

  • Inherited By:

  • Instantiated By: qml-qtcharts-splineseries.xml

  • Inherits: QLineSeries

  • Inherited By:

Detailed Description

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.

Image non disponible

The following code snippet illustrates how to create a basic spline chart:

 
Sélectionnez
QSplineSeries* series = new QSplineSeries();
series->append(0, 6);
series->append(2, 4);
...
chart->addSeries(series);

Member Function Documentation

 

[explicit] 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.

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

Reimplements: QLineSeries::type() const.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+