GraphTransition QML Type
모든 애니메이션이 정의된 컨테이너입니다. 더 보기...
| Import Statement: | import QtGraphs |
- 상속된 멤버를 포함한 모든 멤버 목록
- GraphTransition은 2D용Qt Graphs QML 유형의 일부입니다.
속성
- TransitionType : enumeration
- animations : list<object>
상세 설명
GraphTransition은 Graphs2D 내부의 애니메이션을 담는 컨테이너입니다. 2D 그래프 내에서 ` XYSeries `에 대한 애니메이션 변경을 활성화하려면 그래프 유형 내에 이 클래스를 정의하십시오. 개별 애니메이션을 정의하려면 GraphTransition 내부에 추가하십시오. 동일한 GraphTransition 내의 개별 애니메이션은 병렬로 실행됩니다. 점을 추가하거나 대체하는 지원되는 함수가 호출되는 동안 그래프에서 GraphTransition이 발견되면, 추가된 애니메이션에 따라 값이 보간됩니다.
이 예제는 그래프 내에서 GraphTransition을 정의하는 방법을 보여줍니다.
import QtGraphs
GraphsView {
LineSeries {
GraphTransition {
GraphPointAnimation {}
}
}
SplineSeries {
GraphTransition {
SplineControlAnimation {}
}
}
}참고: GraphTransition은 애니메이션이 적용될 그래프 내에 직접 정의되어야 합니다. 현재는 XYSeries 만 지원됩니다.
GraphPointAnimation 및 SplineControlAnimation도 참조하십시오 .
속성 문서
TransitionType : enumeration
전환 유형.
| 상수 | 설명 |
|---|---|
None | 전환 없음. |
PointAdded | 점이 추가되었습니다. |
PointReplaced | 점이 대체되었습니다. |
PointRemoved | 한 점이 제거되었습니다. |
animations : list<object>
GraphTransition 에 포함된 모든 애니메이션을 담는 컨테이너입니다. 현재는 애니메이션의 추가 및 제거 기능만 지원합니다. 기본적으로 이 목록은 비어 있습니다.
© 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.