SplineSeries QML Type

데이터를 스플라인 차트로 표시합니다. 더 보기...

Import Statement: import QtCharts 2.8
In C++: QSplineSeries
Inherits:

XYSeries

속성

자세한 설명

스플라인 계열은 QPainterPath 에서 스플라인을 그리는 데 필요한 데이터 포인트와 세그먼트 제어점을 저장합니다. 제어점은 데이터가 변경되면 자동으로 계산됩니다. 알고리즘은 일반 스플라인을 그릴 수 있도록 점을 계산합니다.

다음 QML 코드는 간단한 스플라인 차트를 만드는 방법을 보여줍니다:

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 }
    }
}

속성 문서

capStyle : Qt::PenCapStyle

선의 캡 스타일을 제어합니다. Qt.FlatCap , Qt.SquareCap 또는 Qt.RoundCap 중 하나로 설정합니다. 기본적으로 캡 스타일은 Qt.SquareCap입니다.

Qt::PenCapStyle도 참조하십시오 .


count : int

계열의 데이터 포인트 수입니다.


style : Qt::PenStyle

선의 스타일을 제어합니다. Qt.NoPen , Qt.SolidLine, Qt.DashLine, Qt.DotLine, Qt.DashDotLine, 또는 Qt.DashDotDotLine 중 하나로 설정합니다. Qt.CustomDashLine 사용은 QML API에서 지원되지 않습니다. 기본적으로 스타일은 Qt.SolidLine입니다.

Qt::PenStyle참조하십시오 .


width : real

선의 너비입니다. 기본적으로 너비는 2.0입니다.


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