このページでは

QVXYModelMapper Class

QVXYModelMapper クラスは、直線、スプライン、および散布図の系列用の垂直モデルマッパーです。詳細...

Header: #include <QVXYModelMapper>
In QML: VXYModelMapper
Inherits: QXYModelMapper
Status: Deprecated

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

パブリック関数

QVXYModelMapper(QObject *parent = nullptr)
int firstRow() const
QAbstractItemModel *model() const
int rowCount() const
QXYSeries *series() const
void setFirstRow(int firstRow)
void setModel(QAbstractItemModel *model)
void setRowCount(int rowCount)
void setSeries(QXYSeries *series)
void setXColumn(int xColumn)
void setYColumn(int yColumn)
int xColumn() const
int yColumn() const

シグナル

詳細説明

モデルマッパーを使用すると、QAbstractItemModel クラスから派生したデータモデルを、チャートのデータソースとして利用できます。垂直モデルマッパーは、線、スプライン、または散布図の系列と、座標用のXおよびY列を持ち、XYSeries のデータポイントを列として保持するデータモデルとの間に関連付けを作成するために使用されます。このモデルには、TableModelが適しています。

データの操作には、モデルプロパティとシリーズプロパティの両方を使用できます。モデルマッパーは、シリーズとデータモデルを同期状態に保ちます。

「 QHXYModelMapper」 、「QXYSeries 」、および「Charts with Widgets Gallery」も参照してください 。

プロパティのドキュメント

firstRow : int

このプロパティには、系列の最初のデータポイントのデータを含むモデルの行が格納されます。

最小値およびデフォルト値は 0 です。

アクセス関数:

int firstRow() const
void setFirstRow(int firstRow)

通知シグナル:

model : QAbstractItemModel*

このプロパティには、マッパーによって使用されるモデルが格納されます。

アクセス関数:

QAbstractItemModel *model() const
void setModel(QAbstractItemModel *model)

通知シグナル:

void modelReplaced()

rowCount : int

このプロパティには、シリーズのデータとしてマッピングされるモデルの行数が格納されます。

最小値およびデフォルト値は -1 です(この数値はモデルの行数によって制限されます)。

アクセス関数:

int rowCount() const
void setRowCount(int rowCount)

通知信号:

series : QXYSeries*

このプロパティには、マッパーで使用される系列が格納されます。

このプロパティをマッパーに設定すると、シリーズ内のすべてのデータは破棄されます。新しいシリーズが指定されると、古いシリーズは切り離されます(ただし、データは保持されます)。

アクセス関数:

QXYSeries *series() const
void setSeries(QXYSeries *series)

通知シグナル:

xColumn : int

このプロパティには、データポイントのx座標を含むモデルの列が格納されます。

デフォルト値は -1(無効なマッピング)です。

アクセス関数:

int xColumn() const
void setXColumn(int xColumn)

通知シグナル:

yColumn : int

このプロパティには、データポイントの y 座標を含むモデルの列が格納されます。

デフォルト値は -1(無効なマッピング)です。

アクセス関数:

int yColumn() const
void setYColumn(int yColumn)

通知シグナル:

メンバ関数のドキュメント

[explicit] QVXYModelMapper::QVXYModelMapper(QObject *parent = nullptr)

parent の子となるマッパーオブジェクトを作成します。

[signal] void QVXYModelMapper::firstRowChanged()

このシグナルは、最初の行が変更されたときに発火します。

注: プロパティ `firstRow` に対する通知 シグナルです。

[signal] void QVXYModelMapper::modelReplaced()

このシグナルは、マッパーが接続されているモデルが変更されたときに発せられます。

注: プロパティ `model` に対する通知 シグナルです。

[signal] void QVXYModelMapper::rowCountChanged()

このシグナルは、行数が変更されたときに発せられます。

注: プロパティ `rowCount` に対する通知 シグナルです。

[signal] void QVXYModelMapper::seriesReplaced()

このシグナルは、マッパーが接続されているシリーズが変更されたときに発火します。

注: プロパティ `series` に対する通知 シグナルです。

[signal] void QVXYModelMapper::xColumnChanged()

このシグナルは、データポイントのx座標を含む列が変更されたときに発信されます。

注: プロパティ `xColumn` に対する通知 シグナルです。

[signal] void QVXYModelMapper::yColumnChanged()

このシグナルは、データポイントの y 座標を含む列が変更されたときに発せられます。

注: プロパティ `yColumn` に対する通知 シグナルです。

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