En esta página

QSplineSeries Class

QSplineSeries presenta datos en gráficos spline. Más...

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

Propiedades

Funciones públicas

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

Señales

void capStyleChanged()
void optimizedChanged(bool newOptimized)
void widthChanged()

Descripción detallada

El gráfico muestra segmentos de spline suaves que se mueven a través de todos los puntos definidos en el gráfico.

Documentación de Propiedades

capStyle : Qt::PenCapStyle

Controla el estilo de la tapa de la línea spline. El valor es uno de los valores del enum Qt::PenCapStyle. El valor por defecto es Qt::SquareCap.

Funciones de acceso:

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

Señal de notificador:

void capStyleChanged()

Véase también Qt::PenCapStyle.

width : qreal

La anchura de la línea spline en píxeles. El valor por defecto es 2.0.

Funciones de acceso:

qreal width() const
void setWidth(qreal newWidth)

Señal del 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.