QVBarModelMapper Class

QVBarModelMapper 클래스는 막대 시리즈용 수직 모델 매퍼입니다. 더 보기...

Header: #include <QVBarModelMapper>
In QML: VBarModelMapper
Inherits: QObject

속성

공공 기능

QVBarModelMapper(QObject *parent = nullptr)
int firstBarSetColumn() const
int firstRow() const
int lastBarSetColumn() const
QAbstractItemModel *model() const
int rowCount() const
QAbstractBarSeries *series() const
void setFirstBarSetColumn(int firstBarSetColumn)
void setFirstRow(int firstRow)
void setLastBarSetColumn(int lastBarSetColumn)
void setModel(QAbstractItemModel *model)
void setRowCount(int rowCount)
void setSeries(QAbstractBarSeries *series)

신호

상세 설명

모델 매퍼를 사용하면 QAbstractItemModel 클래스에서 파생된 데이터 모델을 차트의 데이터 소스로 사용할 수 있습니다. 수직 모델 매퍼는 데이터 모델과 QAbstractBarSeries 사이의 연결을 만드는 데 사용되므로 데이터 모델의 각 열은 막대 집합을 정의하고 각 행은 막대 계열의 범주에 매핑됩니다.

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

모델 매퍼는 막대 시리즈의 모든 막대 세트가 동일한 크기를 갖도록 합니다. 따라서 막대 세트에서 값을 추가하거나 제거하면 막대 시리즈의 모든 막대 세트에서 동일한 변경이 이루어집니다.

자세한 내용은 위젯이 있는 차트 갤러리를 참조하세요.

QHBarModelMapper참조하세요 .

속성 문서

firstBarSetColumn : int

이 속성은 첫 번째 막대 집합의 데이터 소스로 사용되는 모델의 열을 보유합니다.

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

함수에 액세스합니다:

int firstBarSetColumn() const
void setFirstBarSetColumn(int firstBarSetColumn)

알림 신호:

firstRow : int

이 속성은 막대 시리즈에서 막대 집합의 첫 번째 값을 포함하는 모델의 행을 보유합니다.

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

함수에 액세스합니다:

int firstRow() const
void setFirstRow(int firstRow)

알림 신호:

lastBarSetColumn : int

이 속성은 마지막 막대 집합의 데이터 소스로 사용되는 모델의 열을 보유합니다.

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

함수에 액세스합니다:

int lastBarSetColumn() const
void setLastBarSetColumn(int lastBarSetColumn)

알림 신호:

model : QAbstractItemModel*

이 속성에는 매퍼가 사용하는 데이터 모델이 저장됩니다.

액세스 함수:

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

알림 신호:

void modelReplaced()

rowCount : int

이 속성은 막대 시리즈의 데이터로 매핑되는 모델의 행 수를 보유합니다.

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

함수에 액세스합니다:

int rowCount() const
void setRowCount(int rowCount)

알림 신호:

series : QAbstractBarSeries*

이 속성은 매퍼에서 사용하는 막대 계열을 보유합니다.

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

기능에 액세스합니다:

QAbstractBarSeries *series() const
void setSeries(QAbstractBarSeries *series)

알림 신호:

멤버 함수 문서

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

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

[signal] void QVBarModelMapper::firstBarSetColumnChanged()

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

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

[signal] void QVBarModelMapper::firstRowChanged()

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

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

[signal] void QVBarModelMapper::lastBarSetColumnChanged()

이 신호는 마지막 막대 세트 열이 변경될 때 발생합니다.

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

[signal] void QVBarModelMapper::modelReplaced()

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

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

[signal] void QVBarModelMapper::rowCountChanged()

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

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

[signal] void QVBarModelMapper::seriesReplaced()

이 신호는 매퍼가 연결된 막대 시리즈가 변경될 때 발산됩니다.

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

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