QVXYModelMapper Class

선, 스플라인 및 분산 계열을 위한 수직 모델 매퍼인 QVXYModelMapper 클래스입니다. 더 보기...

Header: #include <QVXYModelMapper>
In QML: VXYModelMapper
Inherits: QXYModelMapper

속성

공공 기능

QVXYModelMapper(QObject *parent = nullptr)
int firstRow() const
QAbstractItemModel *model() const
int rowCount() const
QXYSeries *series() const
void setFirstRow(int firstRow)
void setModel(QAbstractItemModel *model)
void setRowCount(int rowCount)
void setSeries(QXYSeries *series)
void setXColumn(int xColumn)
void setYColumn(int yColumn)
int xColumn() const
int yColumn() const

신호

상세 설명

모델 매퍼를 사용하면 QAbstractItemModel 클래스에서 파생된 데이터 모델을 차트의 데이터 소스로 사용할 수 있습니다. 수직 모델 매퍼는 좌표에 대한 XY 열이 있고 XYSeries 에 대한 데이터 포인트를 행으로 보유하는 데이터 모델과 선, 스플라인 또는 분산 계열 간의 연결을 만드는 데 사용됩니다. TableModel은 모델에 대한 자연스러운 선택입니다.

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

QHXYModelMapper, QXYSeries, 위젯이 있는 차트 갤러리도참조하세요 .

속성 문서

firstRow : int

이 속성은 계열의 첫 번째 점에 대한 데이터가 포함된 모델의 행을 보유합니다.

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

함수에 액세스합니다:

int firstRow() const
void setFirstRow(int firstRow)

알림 신호:

model : QAbstractItemModel*

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

함수에 액세스합니다:

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

알림 신호:

void modelReplaced()

rowCount : int

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

최소값 및 기본값은 -1입니다(모델의 행 수에 따라 제한됨).

함수에 액세스합니다:

int rowCount() const
void setRowCount(int rowCount)

알림 신호:

series : QXYSeries*

이 속성은 매퍼가 사용하는 계열을 보유합니다.

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

기능에 액세스합니다:

QXYSeries *series() const
void setSeries(QXYSeries *series)

알림 신호:

xColumn : int

이 속성은 데이터 요소의 x 좌표가 포함된 모델의 열을 보유합니다.

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

함수에 액세스합니다:

int xColumn() const
void setXColumn(int xColumn)

알림 신호:

yColumn : int

이 속성은 데이터 요소의 y 좌표가 포함된 모델의 열을 보유합니다.

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

함수에 액세스합니다:

int yColumn() const
void setYColumn(int yColumn)

알림 신호:

멤버 함수 문서

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

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

[signal] void QVXYModelMapper::firstRowChanged()

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

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

[signal] void QVXYModelMapper::modelReplaced()

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

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

[signal] void QVXYModelMapper::rowCountChanged()

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

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

[signal] void QVXYModelMapper::seriesReplaced()

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

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

[signal] void QVXYModelMapper::xColumnChanged()

이 신호는 데이터 포인트의 x 좌표가 포함된 열이 변경될 때 발생합니다.

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

[signal] void QVXYModelMapper::yColumnChanged()

이 신호는 데이터 요소의 y 좌표가 포함된 열이 변경될 때 발생합니다.

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

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