QLineSeries Class
QLineSeries クラスは、データを折れ線グラフで表示します。詳細...
| ヘッダー: | #include <QLineSeries> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
| QML内: | LineSeries |
| 継承元: | QXYSeries |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QLineSeriesは、Qt Graphs の2D用C++クラスの一部です。
パブリック型
(since 6.11) enum class | LineStyle { Straight, StepLeft, StepRight, StepCenter } |
(since 6.11) enum class | StrokeStyle { SolidLine, DashLine } |
プロパティ
|
|
パブリック関数
| Qt::PenCapStyle | capStyle() const |
| qreal | dashOffset() const |
| QList<qreal> | dashPattern() const |
| QPointF | dataPointCoordinatesAt(qreal x, qreal y) |
| Qt::PenJoinStyle | joinStyle() const |
| QLineSeries::LineStyle | lineStyle() const |
| void | setCapStyle(Qt::PenCapStyle newCapStyle) |
| void | setDashOffset(qreal newDashOffset) |
| void | setDashPattern(const QList<qreal> &pattern) |
| void | setJoinStyle(Qt::PenJoinStyle newJoinStyle) |
| void | setLineStyle(QLineSeries::LineStyle newLineStyle) |
| void | setStrokeStyle(QLineSeries::StrokeStyle newStrokeStyle) |
| void | setWidth(qreal newWidth) |
| QLineSeries::StrokeStyle | strokeStyle() const |
| qreal | width() const |
シグナル
| void | capStyleChanged() |
| void | dashOffsetChanged(qreal newDashOffset) |
| void | dashPatternChanged(const QList<qreal> &newDashPattern) |
| void | joinStyleChanged(Qt::PenJoinStyle newJoinStyle) |
| void | lineStyleChanged(QLineSeries::LineStyle newLineStyle) |
| void | strokeStyleChanged(QLineSeries::StrokeStyle newStrokeStyle) |
| void | widthChanged() |
メンバ型のドキュメント
[since 6.11] enum class QLineSeries::LineStyle
シリーズの線種を表します。
| 定数 | 値 | 説明 |
|---|---|---|
QLineSeries::LineStyle::Straight | 0 | 各点は直線で結ばれます。 |
QLineSeries::LineStyle::StepLeft | 1 | 各ステップの高さが左側の値となるステップ線で点が結ばれます。 |
QLineSeries::LineStyle::StepRight | 2 | 各ステップの高さが左側の値となるようなステップで点が結ばれています。 |
QLineSeries::LineStyle::StepCenter | 3 | 各点は、2つの値の中間で変化する段階によって結ばれます。 |
この列挙型は Qt 6.11 で導入されました。
[since 6.11] enum class QLineSeries::StrokeStyle
このプロパティは、シリーズのストロークスタイルを表します。デフォルト値は StrokeStyle.SolidLine です。
| 定数 | 値 | 説明 |
|---|---|---|
QLineSeries::StrokeStyle::SolidLine | Qt::SolidLine | 実線。 |
QLineSeries::StrokeStyle::DashLine | Qt::DashLine | 数ピクセル間隔で区切られた破線。 |
この列挙型は Qt 6.11 で導入されました。
プロパティのドキュメント
capStyle : Qt::PenCapStyle
このプロパティは、行末に使用されるキャップスタイルを指定します。
デフォルト値はQt.SquareCap です。
アクセス関数:
| Qt::PenCapStyle | capStyle() const |
| void | setCapStyle(Qt::PenCapStyle newCapStyle) |
通知シグナル:
| void | capStyleChanged() |
[since 6.11] dashOffset : qreal
このプロパティは、strokeStyle がLineSeries.DashLine に設定されている場合のダッシュオフセットを保持します。
この列挙型は Qt 6.11 で導入されました。
アクセス関数:
| qreal | dashOffset() const |
| void | setDashOffset(qreal newDashOffset) |
Notifierシグナル:
| void | dashOffsetChanged(qreal newDashOffset) |
[since 6.11] dashPattern : QList<qreal>
strokeStyle がLineSeries.DashLine に設定されている場合、このプロパティはダッシュパターンを保持します。
この列挙型は Qt 6.11 で導入されました。
アクセス関数:
| QList<qreal> | dashPattern() const |
| void | setDashPattern(const QList<qreal> &pattern) |
Notifierシグナル:
| void | dashPatternChanged(const QList<qreal> &newDashPattern) |
[since 6.11] joinStyle : Qt::PenJoinStyle
このプロパティは、行末に使用される結合スタイルを指定します。
デフォルト値はQt.BevelJoin です。
この列挙型は Qt 6.11 で導入されました。
アクセス関数:
| Qt::PenJoinStyle | joinStyle() const |
| void | setJoinStyle(Qt::PenJoinStyle newJoinStyle) |
Notifierシグナル:
| void | joinStyleChanged(Qt::PenJoinStyle newJoinStyle) |
[since 6.11] lineStyle : QLineSeries::LineStyle
このプロパティは、線の描画に使用される線のスタイルを保持します。
デフォルト値はLineSeries.Straight です。
この列挙型はQt 6.11で導入されました。
アクセス関数:
| QLineSeries::LineStyle | lineStyle() const |
| void | setLineStyle(QLineSeries::LineStyle newLineStyle) |
Notifierシグナル:
| void | lineStyleChanged(QLineSeries::LineStyle newLineStyle) |
[since 6.11] strokeStyle : QLineSeries::StrokeStyle
このプロパティは、シリーズのストロークスタイルを指定します。
デフォルト値はLineSeries.SolidLine です。
この列挙型は Qt 6.11 で導入されました。
アクセス関数:
| QLineSeries::StrokeStyle | strokeStyle() const |
| void | setStrokeStyle(QLineSeries::StrokeStyle newStrokeStyle) |
Notifier シグナル:
| void | strokeStyleChanged(QLineSeries::StrokeStyle newStrokeStyle) |
width : qreal
このプロパティには、シリーズ内の線の幅が格納されます。
このプロパティは、系列の線を引く際に使用されるペン幅を保持します。
アクセス関数:
| qreal | width() const |
| void | setWidth(qreal newWidth) |
通知信号:
| void | widthChanged() |
メンバ関数のドキュメント
[invokable] QPointF QLineSeries::dataPointCoordinatesAt(qreal x, qreal y)
x およびy のレンダリング座標を、データポイント座標に変換して返します。
注:この関数は 、メタオブジェクトシステムおよびQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
© 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.