QXYModelMapper Class
QXYModelMapper 클래스는 선, 스플라인 및 산점도 시계열을 위한 모델 매퍼입니다. 더 보기...
| 헤더: | #include <QXYModelMapper> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
| QML에서: | XYModelMapper |
| 상속: | QObject |
- 상속된 멤버를 포함한 모든 멤버 목록
- QXYModelMapper는 2D용Qt Graphs C++ 클래스의 일부입니다.
속성
|
공개 함수
| qsizetype | count() const |
| qsizetype | first() const |
| QAbstractItemModel * | model() const |
| Qt::Orientation | orientation() const |
| QXYSeries * | series() const |
| void | setCount(qsizetype count) |
| void | setFirst(qsizetype first) |
| void | setModel(QAbstractItemModel *model) |
| void | setOrientation(Qt::Orientation orientation) |
| void | setSeries(QXYSeries *series) |
| void | setXSection(qsizetype xSection) |
| void | setYSection(qsizetype ySection) |
| qsizetype | xSection() const |
| qsizetype | ySection() const |
신호
| void | countChanged() |
| void | firstChanged() |
| void | modelChanged() |
| void | orientationChanged() |
| void | seriesChanged() |
| void | xSectionChanged() |
| void | ySectionChanged() |
보호된 함수
| QXYModelMapper(const QXYModelMapper &) | |
| QXYModelMapper(QXYModelMapper &&) | |
| QXYModelMapper & | operator=(QXYModelMapper &&) |
| QXYModelMapper & | operator=(const QXYModelMapper &) |
상세 설명
모델 매퍼를 사용하면 ` QAbstractItemModel ` 클래스에서 파생된 데이터 모델을 그래프의 데이터 소스로 활용할 수 있습니다. 모델 매퍼는 선, 스플라인 또는 산점도 시계열 간에 연결을 생성하는 데 사용됩니다. ` TableModel `은 모델로 선택하기에 가장 적합한 옵션입니다.
데이터를 조작하기 위해 모델 및 시리즈 속성을 모두 사용할 수 있습니다. 모델 매퍼는 시리즈와 데이터 모델을 동기화된 상태로 유지합니다.
QXYSeries도 참조하십시오 .
속성 설명서
count : qsizetype
이 속성은 시리즈의 데이터로 매핑되는 모델의 행 수를 저장합니다.
최소값 및 기본값은 -1입니다(이 값은 모델의 행 수에 의해 제한됩니다).
액세스 함수:
| qsizetype | count() const |
| void | setCount(qsizetype count) |
알림 신호:
| void | countChanged() |
QXYModelMapper::orientation도 참조하십시오 .
first : qsizetype
이 속성은 시퀀스의 첫 번째 데이터 포인트에 대한 데이터가 포함된 모델의 행을 나타냅니다.
최소값 및 기본값은 0입니다.
액세스 함수:
| qsizetype | first() const |
| void | setFirst(qsizetype first) |
알림 신호:
| void | firstChanged() |
QXYModelMapper::orientation도 참조하십시오 .
model : QAbstractItemModel*
이 속성은 매퍼에서 사용하는 모델을 포함합니다.
액세스 함수:
| QAbstractItemModel * | model() const |
| void | setModel(QAbstractItemModel *model) |
알림 신호:
| void | modelChanged() |
orientation : Qt::Orientation
모델맵퍼에 모델의 데이터를 매핑하는 방법을 지정합니다. ` Qt::Vertical `를 사용하는 경우, 모델의 각 열이 막대 집합을 정의하고 모델의 각 행이 범주를 정의합니다. 방향이 ` Qt::Horizontal`로 설정되면, 모델의 각 행이 막대 집합을 정의하고 모델의 각 열이 범주를 정의합니다.
기본값은 Qt::Vertical
액세스 함수:
| Qt::Orientation | orientation() const |
| void | setOrientation(Qt::Orientation orientation) |
알림 신호:
| void | orientationChanged() |
series : QXYSeries*
이 속성은 매퍼에서 사용하는 시리를 보관합니다.
시리즈가 매퍼에 설정되면 시리즈 내의 모든 데이터는 삭제됩니다. 새로운 시리즈가 지정되면 기존 시리즈와의 연결이 해제되지만(단, 데이터는 유지됩니다).
액세스 함수:
| QXYSeries * | series() const |
| void | setSeries(QXYSeries *series) |
알림 신호:
| void | seriesChanged() |
xSection : qsizetype
이 속성은 데이터 포인트의 x 좌표를 포함하는 모델의 섹션을 저장합니다.
기본값은 -1(유효하지 않은 매핑)입니다.
액세스 함수:
| qsizetype | xSection() const |
| void | setXSection(qsizetype xSection) |
알림 신호:
| void | xSectionChanged() |
QXYModelMapper::orientation도 참조하십시오 .
ySection : qsizetype
이 속성은 데이터 포인트의 y 좌표를 포함하는 모델의 구역을 나타냅니다.
기본값은 -1(유효하지 않은 매핑)입니다.
액세스 함수:
| qsizetype | ySection() const |
| void | setYSection(qsizetype ySection) |
알림 신호:
| void | ySectionChanged() |
QXYModelMapper::orientation도 참조하십시오 .
멤버 함수 설명서
[protected delete] QXYModelMapper::QXYModelMapper(const QXYModelMapper &)
QXYModelMapper 의 인스턴스를 복사 생성합니다. 이 함수는 삭제되었습니다.
[protected delete] QXYModelMapper::QXYModelMapper(QXYModelMapper &&)
QXYModelMapper 의 인스턴스를 move-construct로 생성합니다. 이 함수는 삭제되었습니다.
[protected delete] QXYModelMapper &QXYModelMapper::operator=(QXYModelMapper &&)
other 를 이 QXYModelMapper 인스턴스에 할당합니다. 이 함수는 삭제됩니다.
[protected delete] QXYModelMapper &QXYModelMapper::operator=(const QXYModelMapper &)
other 를 이 QXYModelMapper 인스턴스에 복사-할당합니다. 이 함수는 삭제되었습니다.
© 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.