LineSeries QML Type
Apresenta dados em gráficos de linhas. Mais...
| Import Statement: | import QtCharts 2.12 |
| In C++: | QLineSeries |
| Inherits: | |
| Status: | Deprecated |
Esse tipo está obsoleto. Recomendamos enfaticamente que não seja utilizado em códigos novos.
Propriedades
Descrição detalhada
Um gráfico de linhas é usado para exibir informações como uma série de pontos de dados conectados por linhas retas.
O exemplo de QML a seguir mostra como criar um gráfico de linhas simples:
ChartView {
title: "Line Chart"
anchors.fill: parent
antialiasing: true
LineSeries {
name: "Line"
XYPoint { x: 0; y: 0 }
XYPoint { x: 1.1; y: 2.1 }
XYPoint { x: 1.9; y: 3.3 }
XYPoint { x: 2.1; y: 2.1 }
XYPoint { x: 2.9; y: 4.9 }
XYPoint { x: 3.4; y: 3.0 }
XYPoint { x: 4.1; y: 3.3 }
}
}
Documentação das propriedades
capStyle : Qt::PenCapStyle
Controla o estilo das extremidades da linha. Defina como uma das seguintes opções: Qt.FlatCap, Qt.SquareCap ou Qt.RoundCap. Por padrão, o estilo das extremidades é Qt.SquareCap.
Veja também Qt::PenCapStyle.
count : int
O número de pontos de dados na série.
style : Qt::PenStyle
Controla o estilo da linha. Defina como uma das seguintes opções: Qt.NoPen, Qt.SolidLine, Qt.DashLine, Qt.DotLine, Qt.DashDotLine ou Qt.DashDotDotLine. O uso de Qt.CustomDashLine não é compatível com a API do QML. Por padrão, o estilo é Qt.SolidLine.
Veja também Qt::PenStyle.
width : real
A largura da linha. Por padrão, a largura é 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.