QVXYModelMapper Class
QVXYModelMapper 클래스는 선, 스플라인 및 산점도 시계열을 위한 수직 모델 매퍼입니다. 더 보기...
| Header: | #include <QVXYModelMapper> |
| In QML: | VXYModelMapper |
| Inherits: | QXYModelMapper |
| Status: | Deprecated |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
공개 함수
| 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 |
신호
| void | firstRowChanged() |
| void | modelReplaced() |
| void | rowCountChanged() |
| void | seriesReplaced() |
| void | xColumnChanged() |
| void | yColumnChanged() |
상세 설명
모델 매퍼를 사용하면 ` QAbstractItemModel ` 클래스에서 파생된 데이터 모델을 차트의 데이터 소스로 활용할 수 있습니다. 수직 모델 매퍼는 선, 스플라인 또는 산점도 시계열과, 좌표용 X 및 Y 열을 가지고 ` XYSeries `의 데이터 포인트를 행으로 포함하는 데이터 모델 간의 연결을 생성하는 데 사용됩니다. 이 모델에는 ` TableModel `이 가장 적합합니다.
데이터를 조작하는 데에는 모델 속성과 시리즈 속성을 모두 사용할 수 있습니다. 모델 매퍼는 시리즈와 데이터 모델이 항상 동기화되도록 유지합니다.
QHXYModelMapper, QXYSeries 및 위젯이 포함된 차트 갤러리도 참조하십시오 .
속성 문서
firstRow : int
이 속성은 시퀀스의 첫 번째 데이터 포인트에 대한 데이터가 포함된 모델의 행을 나타냅니다.
최소값 및 기본값은 0입니다.
액세스 함수:
| int | firstRow() const |
| void | setFirstRow(int firstRow) |
알림 신호:
| void | firstRowChanged() |
model : QAbstractItemModel*
이 속성은 매퍼에서 사용하는 모델을 포함합니다.
액세스 함수:
| QAbstractItemModel * | model() const |
| void | setModel(QAbstractItemModel *model) |
알림 신호:
| void | modelReplaced() |
rowCount : int
이 속성은 시리즈의 데이터로 매핑되는 모델의 행 수를 저장합니다.
최소값 및 기본값은 -1입니다(이 값은 모델의 행 수에 의해 제한됩니다).
액세스 함수:
| int | rowCount() const |
| void | setRowCount(int rowCount) |
알림 신호:
| void | rowCountChanged() |
series : QXYSeries*
이 속성은 매퍼에서 사용하는 시리를 포함합니다.
시리즈가 매퍼에 설정되면 시리즈 내의 모든 데이터는 삭제됩니다. 새로운 시리즈가 지정되면 기존 시리즈는 연결이 해제되지만(단, 데이터는 유지됩니다).
액세스 함수:
| QXYSeries * | series() const |
| void | setSeries(QXYSeries *series) |
알림 신호:
| void | seriesReplaced() |
xColumn : int
이 속성은 데이터 포인트의 x좌표를 포함하는 모델의 열을 나타냅니다.
기본값은 -1(유효하지 않은 매핑)입니다.
액세스 함수:
| int | xColumn() const |
| void | setXColumn(int xColumn) |
알림 신호:
| void | xColumnChanged() |
yColumn : int
이 속성은 데이터 포인트의 y좌표를 포함하는 모델의 열을 나타냅니다.
기본값은 -1(잘못된 매핑)입니다.
액세스 함수:
| int | yColumn() const |
| void | setYColumn(int yColumn) |
알림 신호:
| void | yColumnChanged() |
멤버 함수 설명서
[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`에 대한알림 신호입니다.
© 2026 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.