XYSeries QML Type
모든 x 및 y 시리즈 유형에 대한 상위 유형입니다. 더 보기...
Import Statement: | import QtGraphs |
In C++: | QXYSeries |
Inherits: | |
Inherited By: |
- 상속된 멤버를 포함한 모든 멤버 목록
- XYSeries는 Qt Graphs 2D용 QML 타입의 일부입니다.
속성
- color : color
- count : int
- pointDelegate : Component
- selectedColor : color
- selectedPoints : list<int>
신호
- colorChanged(color color)
- draggableChanged()
- pointMarkerChanged()
- pointReplaced(int index)
- pointsReplaced()
- selectedColorChanged(color color)
- selectedPointsChanged()
방법
- append(list<point> points)
- append(point point)
- append(real x, real y)
- point at(int index)
- clear()
- deselectAllPoints()
- deselectPoint(int index)
- deselectPoints(list<int> indexes)
- int find(point point)
- insert(int index, point point)
- bool isPointSelected(int index)
- remove(int index)
- remove(point point)
- remove(real x, real y)
- removeMultiple(int index, int count)
- replace(list<point> points)
- replace(int index, point newPoint)
- replace(point oldPoint, point newPoint)
- replace(int index, real newX, real newY)
- replace(real oldX, real oldY, real newX, real newY)
- selectAllPoints()
- selectPoint(int index)
- selectPoints(list<int> indexes)
- setPointSelected(int index, bool selected)
- bool take(point point)
- toggleSelection(list<int> indexes)
상세 설명
XYSeries에서 데이터 포인트는 포인트 유형의 목록으로 정의되며, X 및 Y 위치를 정의합니다.
속성 문서
color : color |
계열의 주 색상입니다. LineSeries 의 경우 선 색, ScatterSeries 의 경우 점의 색을 의미합니다.
count : int |
계열의 데이터 포인트 수를 반환합니다.
pointDelegate : Component |
데이터 포인트의 마커로 사용되는 사용자 지정 QML 컴포넌트입니다.
이 컴포넌트에 사용할 수 있는 동적 속성은 다음과 같습니다:
유형 | 이름 | 설명 |
---|---|---|
bool | pointSelected | 포인트가 선택되면 이 값은 참입니다. |
색 | pointColor | 시리즈의 색상입니다. 이 값은 GraphsTheme 또는 XYSeries 가 색상을 재정의하는 경우 XYSeries::color 에서 가져옵니다. |
색 | 포인트 테두리색 | 시리즈의 테두리 색상입니다. 이 값은 GraphsTheme 에서 가져옵니다. |
색 | 포인트선택색 | 시리즈의 선택된 색상입니다. 이 값은 GraphsTheme 또는 XYSeries 가 색상을 재정의하는 경우 XYSeries::selectedColor 에서 가져옵니다. |
real | pointBorderWidth | 계열의 테두리 너비입니다. 이 값은 GraphsTheme 에서 가져옵니다. |
real | pointValueX | 이 위치에서 XYPoint::x 의 값입니다. |
real | pointValueY | 이 위치에서 XYPoint::y 의 값입니다. |
이 중 하나를 사용하려면 정의된 이름의 프로퍼티를 사용자 정의 컴포넌트에 추가하세요. 예: "property color pointColor"
및 "property real pointValueX"
.
selectedColor : color |
선택된 포인트의 색입니다.
신호 문서
colorChanged(color color) |
선 색이 color 로 변경될 때 이 신호가 발생합니다.
참고: 해당 핸들러는 onColorChanged
입니다.
draggableChanged() |
마우스/터치로 드래그할 수 있게 되거나 시리즈가 고정될 때 이 신호가 발생합니다.
참고: 해당 핸들러는 onDraggableChanged
입니다.
pointMarkerChanged() |
이 신호는 점이 변경될 때 발생합니다.
참고: 해당 핸들러는 onPointMarkerChanged
입니다.
pointReplaced(int index) |
이 신호는 index 에 지정된 위치에서 포인트가 교체될 때 발생합니다.
참고: 해당 핸들러는 onPointReplaced
입니다.
pointsReplaced() |
이 신호는 모든 포인트가 교체될 때 발생합니다.
참고: 해당 핸들러는 onPointsReplaced
입니다.
selectedColorChanged(color color) |
이 신호는 선택한 계열의 색이 color 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onSelectedColorChanged
입니다.
selectedPointsChanged() |
이 신호는 선택한 점 집합이 변경될 때 발생합니다.
참고: 해당 핸들러는 onSelectedPointsChanged
입니다.
메서드 문서
append(point point) |
좌표 point 의 점을 계열에 추가합니다.
clear() |
계열에서 모든 점을 제거합니다.
deselectAllPoints() |
deselectPoint(int index) |
indexes 목록에서 전달된 여러 포인트를 선택 취소된 것으로 표시합니다.
setPointSelected()도 참조하세요 .
좌표 point 를 가진 점을 계열에서 index 에 지정된 위치에 삽입합니다. 인덱스가 0이거나 0보다 작으면 점 목록에 해당 점이 앞에 추가됩니다. 인덱스가 급수의 점 수보다 크거나 같으면 점이 점 목록에 추가됩니다.
주어진 index 의 점이 선택된 점 중 하나이면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
참고: 선택된 점이 지정된 경우 선택한 색을 사용하여 그려집니다.
selectedPoints, setPointSelected() 및 selectedColor 를참조하세요 .
remove(int index) |
index 으로 지정된 위치의 점을 계열에서 제거합니다.
remove(point point) |
좌표 point 의 점을 계열에서 제거합니다. 점이 존재하지 않으면 아무 작업도 수행하지 않습니다.
현재 점을 다음에 지정된 점으로 바꿉니다. points
참고: 이 방법은 데이터 포인트를 하나씩 바꾸거나 먼저 모든 데이터를 지운 다음 새 데이터를 추가하는 것보다 훨씬 빠릅니다. 포인트가 교체되면 pointsReplaced 을 반환합니다.
좌표 oldPoint 를 가진 점을 좌표 newPoint 를 가진 점으로 바꿉니다. 이전 점이 존재하지 않으면 아무것도 수행하지 않습니다.
좌표 oldX 및 oldY 을 가진 점을 좌표 newX 및 newY 을 가진 점으로 바꿉니다. 이전 점이 존재하지 않으면 아무 작업도 수행하지 않습니다.
selectAllPoints() |
selectPoint(int index) |
indexes 목록에서 전달된 여러 포인트를 선택한 것으로 표시합니다.
setPointSelected()도 참조하세요 .
selected 에서 지정한 대로 지정된 index 점을 선택 또는 선택 취소된 것으로 표시합니다.
참고: 선택된 점이 지정된 경우 선택한 색을 사용하여 그려집니다. Emits QXYSeries::selectedPointsChanged
isPointSelected(), selectAllPoints() 및 selectedColor도 참조하세요 .
지정된 indexes 에서 점의 선택 상태를 반대 상태로 변경합니다.
setPointSelected()도 참조하세요 .
© 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.