SplineSeries QML Type
Visualizza i dati sotto forma di grafici spline. Altro...
| Import Statement: | import QtCharts 2.12 |
| In C++: | QSplineSeries |
| Inherits: | |
| Status: | Deprecated |
Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.
Proprietà
Descrizione dettagliata
Una serie spline memorizza i punti dati e i punti di controllo dei segmenti necessari all'QPainterPath e per disegnare una spline. I punti di controllo vengono calcolati automaticamente quando i dati cambiano. L'algoritmo calcola i punti in modo da poter disegnare la spline normale.

Il seguente codice QML mostra come creare un semplice grafico a spline:
ChartView {
title: "Spline Chart"
anchors.fill: parent
antialiasing: true
SplineSeries {
name: "Spline"
XYPoint { x: 0; y: 0.0 }
XYPoint { x: 1.1; y: 3.2 }
XYPoint { x: 1.9; y: 2.4 }
XYPoint { x: 2.1; y: 2.1 }
XYPoint { x: 2.9; y: 2.6 }
XYPoint { x: 3.4; y: 2.3 }
XYPoint { x: 4.1; y: 3.1 }
}
}Documentazione delle proprietà
capStyle : Qt::PenCapStyle
Controlla lo stile delle estremità della linea. Impostare uno dei seguenti valori: Qt.FlatCap, Qt.SquareCap o Qt.RoundCap. Per impostazione predefinita, lo stile delle estremità è Qt.SquareCap.
Vedi anche Qt::PenCapStyle.
count : int
Il numero di valori della serie.
style : Qt::PenStyle
Controlla lo stile della linea. Impostare su uno dei seguenti valori: Qt.NoPen, Qt.SolidLine, Qt.DashLine, Qt.DotLine, Qt.DashDotLine o Qt.DashDotDotLine. L'uso di Qt.CustomDashLine non è supportato nell'API QML. Per impostazione predefinita, lo stile è Qt.SolidLine.
Vedi anche Qt::PenStyle.
width : real
La larghezza della linea. Per impostazione predefinita, la larghezza è 2,0.
© 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.