On this page

QSplineSeries Class

QSplineSeries presents data in spline graphs. More...

Header: #include <QSplineSeries>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
In QML: SplineSeries
Inherits: QXYSeries

Properties

Public Functions

Qt::PenCapStyle capStyle() const
bool optimized() const
void setCapStyle(Qt::PenCapStyle newCapStyle)
void setOptimized(bool optimized)
void setWidth(qreal newWidth)
qreal width() const

Reimplemented Public Functions

virtual QAbstractSeries::SeriesType type() const override

Signals

void capStyleChanged()
void optimizedChanged(bool optimized)
void widthChanged()

Reimplemented Protected Functions

virtual void componentComplete() override

Detailed Description

The graph displays smooth spline segments that moves through all the points defined in the graph.

Property Documentation

capStyle : Qt::PenCapStyle

Controls the cap style of the spline line. The value is one of Qt::PenCapStyle enum values. The default value is Qt::SquareCap.

Access functions:

Qt::PenCapStyle capStyle() const
void setCapStyle(Qt::PenCapStyle newCapStyle)

Notifier signal:

void capStyleChanged()

See also Qt::PenCapStyle.

width : qreal

The width of the spline line in pixels. The default value is 2.0.

Access functions:

qreal width() const
void setWidth(qreal newWidth)

Notifier signal:

void widthChanged()

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