QHXYModelMapper Class
QHXYModelMapper クラスは、直線、スプライン、および散布図の系列用の水平モデルマッパーです。詳細...
| Header: | #include <QHXYModelMapper> |
| In QML: | HXYModelMapper |
| Inherits: | QXYModelMapper |
| Status: | Deprecated |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
|
パブリック関数
| QHXYModelMapper(QObject *parent = nullptr) | |
| int | columnCount() const |
| int | firstColumn() const |
| QAbstractItemModel * | model() const |
| QXYSeries * | series() const |
| void | setColumnCount(int columnCount) |
| void | setFirstColumn(int firstColumn) |
| void | setModel(QAbstractItemModel *model) |
| void | setSeries(QXYSeries *series) |
| void | setXRow(int xRow) |
| void | setYRow(int yRow) |
| int | xRow() const |
| int | yRow() const |
シグナル
| void | columnCountChanged() |
| void | firstColumnChanged() |
| void | modelReplaced() |
| void | seriesReplaced() |
| void | xRowChanged() |
| void | yRowChanged() |
詳細な説明
モデルマッパーを使用すると、QAbstractItemModel クラスから派生したデータモデルを、チャートのデータソースとして利用できます。水平モデルマッパーは、線、スプライン、または散布図のシリーズと、座標用のXおよびY行を持ち、XYSeries のデータポイントを列として保持するデータモデルとの間に関連付けを作成するために使用されます。このモデルには、TableModelが最適な選択肢となります。
データの操作には、モデルプロパティとシリーズプロパティの両方を使用できます。モデルマッパーは、シリーズとデータモデルを常に同期させた状態に保ちます。
「 QVXYModelMapper」 、「QXYSeries 」、および「ウィジェット付きチャート ギャラリー」も参照してください 。
プロパティのドキュメント
columnCount : int
このプロパティには、シリーズのデータとしてマッピングされるモデルの列数が格納されます。
最小値およびデフォルト値は -1 です(数値はモデルの列数によって制限されます)。
アクセス関数:
| int | columnCount() const |
| void | setColumnCount(int columnCount) |
通知シグナル:
| void | columnCountChanged() |
firstColumn : int
このプロパティには、系列の最初のデータポイントのデータを含むモデルの列が格納されます。
最小値およびデフォルト値は 0 です。
アクセス関数:
| int | firstColumn() const |
| void | setFirstColumn(int firstColumn) |
通知信号:
| void | firstColumnChanged() |
model : QAbstractItemModel*
このプロパティには、マッパーで使用されるモデルが格納されます。
アクセス関数:
| QAbstractItemModel * | model() const |
| void | setModel(QAbstractItemModel *model) |
通知シグナル:
| void | modelReplaced() |
series : QXYSeries*
このプロパティには、マッパーで使用されるシリーズが格納されます。
このプロパティがマッパーに設定されると、シリーズ内のすべてのデータは破棄されます。新しいシリーズが指定されると、古いシリーズは切り離されます(ただし、そのデータは保持されます)。
アクセス関数:
| QXYSeries * | series() const |
| void | setSeries(QXYSeries *series) |
通知シグナル:
| void | seriesReplaced() |
xRow : int
このプロパティには、データポイントの x 座標を含むモデルの行が格納されます。
デフォルト値は -1(無効なマッピング)です。
アクセス関数:
| int | xRow() const |
| void | setXRow(int xRow) |
通知シグナル:
| void | xRowChanged() |
yRow : int
このプロパティには、データポイントの y 座標を含むモデルの行が格納されます。
デフォルト値は -1(無効なマッピング)です。
アクセス関数:
| int | yRow() const |
| void | setYRow(int yRow) |
通知シグナル:
| void | yRowChanged() |
メンバ関数のドキュメント
[explicit] QHXYModelMapper::QHXYModelMapper(QObject *parent = nullptr)
parent の子となるマッパーオブジェクトを作成します。
[signal] void QHXYModelMapper::columnCountChanged()
このシグナルは、列数が変更されたときに発信されます。
注: プロパティ `columnCount` に対する通知 シグナルです。
[signal] void QHXYModelMapper::firstColumnChanged()
このシグナルは、最初の列が変更されたときに発せられます。
注: プロパティ `firstColumn` に対する通知 シグナルです。
[signal] void QHXYModelMapper::modelReplaced()
このシグナルは、マッパーが接続されているモデルが変更されたときに発火します。
注: プロパティ `model` に対する通知 シグナルです。
[signal] void QHXYModelMapper::seriesReplaced()
このシグナルは、マッパーが接続されているシリーズが変更されたときに発生します。
注: プロパティ `series` に対する通知 シグナルです。
[signal] void QHXYModelMapper::xRowChanged()
このシグナルは、データポイントのx座標を含む行が変更されたときに発せられます。
注: プロパティ `xRow` に対する通知 シグナルです。
[signal] void QHXYModelMapper::yRowChanged()
このシグナルは、データポイントの y 座標を含む行が変更されたときに発せられます。
注: プロパティ `yRow` に対する通知 シグナルです。
© 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.