QVBoxPlotModelMapper Class

QVBoxPlot모델매퍼는 박스 플롯 시리즈를 위한 수직 모델 매퍼입니다. 더 보기...

Header: #include <QVBoxPlotModelMapper>
In QML: VBoxPlotModelMapper
Inherits: QObject

속성

공공 기능

QVBoxPlotModelMapper(QObject *parent = nullptr)
int firstBoxSetColumn() const
int firstRow() const
int lastBoxSetColumn() const
QAbstractItemModel *model() const
int rowCount() const
QBoxPlotSeries *series() const
void setFirstBoxSetColumn(int firstBoxSetColumn)
void setFirstRow(int firstRow)
void setLastBoxSetColumn(int lastBoxSetColumn)
void setModel(QAbstractItemModel *model)
void setRowCount(int rowCount)
void setSeries(QBoxPlotSeries *series)

신호

상세 설명

모델 매퍼를 사용하면 QAbstractItemModel 클래스에서 파생된 데이터 모델을 차트의 데이터 소스로 사용할 수 있습니다. 수직 모델 매퍼는 데이터 모델과 QBoxPlotSeries 개체 간의 연결을 만드는 데 사용되며, 데이터 모델의 각 열은 상자 및 수염 항목을 정의하고 각 행은 상자 및 수염 항목의 범위와 세 개의 중앙값에 매핑되도록 합니다.

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

모델 매퍼는 상자형 차트 계열의 모든 막대 상자 및 수염 항목이 동일한 크기를 갖도록 합니다. 따라서 상자 수염 항목에서 값을 추가하거나 제거하면 상자 그림 계열의 모든 상자 수염 항목에서 동일한 변경이 이루어집니다.

QHBoxPlotModelMapper참조하세요 .

속성 문서

firstBoxSetColumn : int

이 속성은 첫 번째 상자 및 수염 항목의 데이터 소스로 사용되는 모델의 열을 보유합니다.

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

함수에 액세스합니다:

int firstBoxSetColumn() const
void setFirstBoxSetColumn(int firstBoxSetColumn)

알림 신호:

firstRow : int

이 속성은 상자 플롯 계열에서 상자 및 수염 항목의 첫 번째 값을 포함하는 모델의 행을 보유합니다.

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

함수에 액세스합니다:

int firstRow() const
void setFirstRow(int firstRow)

알림 신호:

lastBoxSetColumn : int

이 속성은 마지막 상자 및 수염 항목의 데이터 소스로 사용되는 모델의 열을 보유합니다.

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

함수에 액세스합니다:

int lastBoxSetColumn() const
void setLastBoxSetColumn(int lastBoxSetColumn)

알림 신호:

model : QAbstractItemModel*

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

함수에 액세스합니다:

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

알림 신호:

void modelReplaced()

rowCount : int

이 속성은 박스형 차트 시리즈의 데이터로 매핑되는 모델의 행 수를 보유합니다.

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

함수에 액세스합니다:

int rowCount() const
void setRowCount(int rowCount)

알림 신호:

series : QBoxPlotSeries*

이 속성은 매퍼에서 사용하는 박스 플롯 계열을 보유합니다.

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

기능에 액세스합니다:

QBoxPlotSeries *series() const
void setSeries(QBoxPlotSeries *series)

알림 신호:

멤버 함수 문서

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

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

[signal] void QVBoxPlotModelMapper::firstBoxSetColumnChanged()

이 신호는 첫 번째 상자 및 수염 항목 열이 변경될 때 발생합니다.

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

[signal] void QVBoxPlotModelMapper::firstRowChanged()

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

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

[signal] void QVBoxPlotModelMapper::lastBoxSetColumnChanged()

이 신호는 마지막 상자 및 수염 항목 열이 변경될 때 발생합니다.

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

[signal] void QVBoxPlotModelMapper::modelReplaced()

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

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

[signal] void QVBoxPlotModelMapper::rowCountChanged()

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

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

[signal] void QVBoxPlotModelMapper::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.