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.