QPieModelMapper Class
QPieModelMapperはパイシリーズのモデルマッパーです。詳細...
ヘッダー | #include <QPieModelMapper> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
qmake | QT += graphs |
QML で | PieModelMapper |
継承: | QObject |
- 継承メンバを含む全メンバのリスト
- QPieModelMapper はQt Graphs C++ Classes for 2D に含まれます。
プロパティ
|
|
パブリック機能
qsizetype | count() const |
qsizetype | first() const |
qsizetype | labelsSection() const |
QAbstractItemModel * | model() const |
Qt::Orientation | orientation() const |
QPieSeries * | series() const |
void | setCount(qsizetype count) |
void | setFirst(qsizetype first) |
void | setLabelsSection(qsizetype labelsSection) |
void | setModel(QAbstractItemModel *model) |
void | setOrientation(Qt::Orientation orientation) |
void | setSeries(QPieSeries *series) |
void | setValuesSection(qsizetype valuesSection) |
qsizetype | valuesSection() const |
シグナル
void | countChanged() |
void | firstChanged() |
void | labelsSectionChanged() |
void | modelChanged() |
void | orientationChanged() |
void | seriesChanged() |
void | valuesSectionChanged() |
詳細説明
モデルマッパーは、QAbstractItemModel クラスに由来するデータモデルを、グラフのデータソースとして使用できるようにします。モデルマッパーは、データモデルとQPieSeries との間の接続を作成するために使用されます。
モデルとパイ・シリーズの両方のプロパティを使用して、データを操作することができます。モデルマッパーは、パイ・シリーズとデータモデルの同期を保ちます。
プロパティのドキュメント
count : qsizetype
このプロパティは、パイ系列のデータとしてマッピングされるモデルの列数または行数を保持する。
最小値およびデフォルト値は-1(モデルの行数によって制限される数)。
アクセス関数:
qsizetype | count() const |
void | setCount(qsizetype count) |
通知シグナル:
void | countChanged() |
QPieModelMapper::orientationも参照 。
first : qsizetype
このプロパティは、最初のスライス値を含むモデルの列または行を保持する。
最小値およびデフォルト値は 0 です。
アクセス関数:
qsizetype | first() const |
void | setFirst(qsizetype first) |
ノーティファイア・シグナル:
void | firstChanged() |
QPieModelMapper::orientationも参照してください 。
labelsSection : qsizetype
このプロパティは、パイのスライスのラベルと同期して保持されるモデルの列または行を保持します。
デフォルト値は-1(無効なマッピング)です。
アクセス関数:
qsizetype | labelsSection() const |
void | setLabelsSection(qsizetype labelsSection) |
通知シグナル:
void | labelsSectionChanged() |
QPieModelMapper::orientationも参照してください 。
model : QAbstractItemModel*
このプロパティはマッパーが使用するモデルを保持します。
アクセス関数
QAbstractItemModel * | model() const |
void | setModel(QAbstractItemModel *model) |
通知シグナル
void | modelChanged() |
orientation : Qt::Orientation
モデルからのデータをどのようにマッピングするかをモデルマッパーに指示します。Qt::Vertical
が使われた場合、モデルの各行がパイスライスを定義し、モデルの列がパイスライスのラベルまたは値を定義します。Orientation がQt::Horizontal
に設定されている場合、モデルの各列はパイスライスを定義し、モデルの行はパイスライスのラベルまたは値を定義します。
デフォルト値はQt::Vertical
アクセス関数です:
Qt::Orientation | orientation() const |
void | setOrientation(Qt::Orientation orientation) |
通知シグナル:
void | orientationChanged() |
series : QPieSeries*
このプロパティはマッパーが使用するパイシリーズを保持する。
このシリーズがマッパーに設定されると、シリーズ内のデータはすべて破棄されます。新しい系列が指定されると、古い系列は切り離されます(ただしデータは保持されます)。
アクセス関数
QPieSeries * | series() const |
void | setSeries(QPieSeries *series) |
通知シグナル
void | seriesChanged() |
valuesSection : qsizetype
このプロパティは、パイのスライスの値と同期を保つモデルの列または行を保持します。
デフォルト値は -1(無効なマッピング)です。
アクセス関数:
qsizetype | valuesSection() const |
void | setValuesSection(qsizetype valuesSection) |
通知シグナル:
void | valuesSectionChanged() |
QPieModelMapper::orientationも参照してください 。
© 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.