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
void setCapStyle(Qt::PenCapStyle newCapStyle)
void setWidth(qreal newWidth)
qreal width() const

Signals

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