QHPieModelMapper Class

QHPieModelMapper는 파이 계열을 위한 수평 모델 매퍼입니다. 더 보기...

Header: #include <QHPieModelMapper>
In QML: HPieModelMapper
Inherits: QPieModelMapper

속성

공공 기능

QHPieModelMapper(QObject *parent = nullptr)
int columnCount() const
int firstColumn() const
int labelsRow() const
QAbstractItemModel *model() const
QPieSeries *series() const
void setColumnCount(int columnCount)
void setFirstColumn(int firstColumn)
void setLabelsRow(int labelsRow)
void setModel(QAbstractItemModel *model)
void setSeries(QPieSeries *series)
void setValuesRow(int valuesRow)
int valuesRow() const

신호

상세 설명

모델 매퍼를 사용하면 QAbstractItemModel 클래스에서 파생된 데이터 모델을 차트의 데이터 소스로 사용할 수 있습니다. 수평 모델 매퍼는 데이터 모델과 QPieSeries 사이의 연결을 만드는 데 사용되므로 데이터 모델의 각 열은 파이 슬라이스를 정의하고 각 행은 레이블 또는 파이 슬라이스의 값에 매핑됩니다.

모델 및 파이 계열 속성 모두 데이터를 조작하는 데 사용할 수 있습니다. 모델 매퍼는 파이 시리즈와 데이터 모델을 동기화 상태로 유지합니다.

속성 문서

columnCount : int

이 속성은 파이 계열의 데이터로 매핑되는 모델의 열 수를 보유합니다.

최소값 및 기본값은 -1입니다(모델의 열 수로 제한되는 숫자).

함수에 액세스합니다:

int columnCount() const
void setColumnCount(int columnCount)

알림 신호:

firstColumn : int

이 속성은 첫 번째 슬라이스 값을 포함하는 모델의 열을 보유합니다.

최소값 및 기본값은 0입니다.

함수에 액세스합니다:

int firstColumn() const
void setFirstColumn(int firstColumn)

알림 신호:

labelsRow : int

이 속성은 파이 슬라이스의 레이블과 동기화된 상태로 유지되는 모델의 행을 보유합니다.

기본값은 -1(잘못된 매핑)입니다.

함수에 액세스합니다:

int labelsRow() const
void setLabelsRow(int labelsRow)

알림 신호:

model : QAbstractItemModel*

이 프로퍼티에는 매퍼가 사용하는 모델이 저장됩니다.

함수에 액세스합니다:

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

알림 신호:

void modelReplaced()

series : QPieSeries*

이 프로퍼티에는 매퍼가 사용하는 파이 계열이 저장됩니다.

계열이 매퍼로 설정되면 계열의 모든 데이터가 삭제됩니다. 새 계열이 지정되면 이전 계열의 연결이 끊어지지만 데이터는 보존됩니다.

기능에 액세스합니다:

QPieSeries *series() const
void setSeries(QPieSeries *series)

알림 신호:

valuesRow : int

이 속성은 파이의 슬라이스 값과 동기화된 상태로 유지되는 모델의 행을 보유합니다.

기본값은 -1(잘못된 매핑)입니다.

함수에 액세스합니다:

int valuesRow() const
void setValuesRow(int valuesRow)

알림 신호:

멤버 함수 문서

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

parent 의 자식인 매퍼 객체를 생성합니다.

[signal] void QHPieModelMapper::columnCountChanged()

이 신호는 열 수가 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 columnCount.

[signal] void QHPieModelMapper::firstColumnChanged()

이 신호는 첫 번째 열이 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 firstColumn.

int QHPieModelMapper::labelsRow() const

파이 슬라이스의 레이블과 동기화된 모델의 행을 반환합니다.

참고: 속성 labelsRow에 대한 게터 함수입니다.

setLabelsRow()도 참조하세요 .

[signal] void QHPieModelMapper::labelsRowChanged()

이 신호는 레이블 행이 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 labelsRow.

[signal] void QHPieModelMapper::modelReplaced()

이 신호는 매퍼가 연결된 모델이 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 model.

[signal] void QHPieModelMapper::seriesReplaced()

이 신호는 매퍼가 연결된 시리즈가 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 series.

void QHPieModelMapper::setLabelsRow(int labelsRow)

파이 슬라이스의 레이블과 동기화되는 모델 행을 labelsRow 로 설정합니다.

참고: 속성에 대한 설정자 함수 labelsRow.

labelsRow()도 참조하세요 .

void QHPieModelMapper::setValuesRow(int valuesRow)

파이 슬라이스의 값과 동기화되는 모델 행을 valuesRow 으로 설정합니다.

참고: 속성에 대한 설정자 함수 valuesRow.

valuesRow()도 참조하세요 .

int QHPieModelMapper::valuesRow() const

파이의 슬라이스 값과 동기화된 모델의 행을 반환합니다.

참고: 속성 값Row에 대한 게터 함수입니다.

setValuesRow()도 참조하세요 .

[signal] void QHPieModelMapper::valuesRowChanged()

이 신호는 값 행이 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 valuesRow.

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