Nesta página

QSplineSeries Class

O QSplineSeries apresenta dados em gráficos de spline. Mais...

Cabeçalho: #include <QSplineSeries>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
No QML: SplineSeries
Herdado de: QXYSeries

Propriedades

Funções públicas

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

Sinais

Descrição detalhada

O gráfico exibe segmentos de spline suaves que passam por todos os pontos definidos no gráfico.

Documentação das propriedades

capStyle : Qt::PenCapStyle

Controla o estilo das extremidades da linha spline. O valor é um dos valores da enumeração ` Qt::PenCapStyle `. O valor padrão é ` Qt::SquareCap`.

Funções de acesso:

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

Sinal do notificador:

void capStyleChanged()

Veja também Qt::PenCapStyle.

width : qreal

A largura da linha spline em pixels. O valor padrão é 2,0.

Funções de acesso:

qreal width() const
void setWidth(qreal newWidth)

Sinal do notificador:

void widthChanged()

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