GraphTransition QML Type

모든 애니메이션이 정의된 컨테이너입니다. 더 보기...

Import Statement: import QtGraphs

속성

상세 설명

그래프 전환은 그래프2D에서 내부 애니메이션을 위한 컨테이너입니다. 이 클래스를 그래프 유형 안에 정의하면 2D 그래프 내에서 XYSeries 에 애니메이션 변경을 활성화할 수 있습니다. 개별 애니메이션을 정의하려면 그래프 트랜지션 안에 추가합니다. 동일한 그래프 전환 내의 개별 애니메이션은 병렬로 애니메이션이 적용됩니다. 지원되는 함수를 호출하는 동안 그래프에서 점을 추가하거나 대체하는 그래프 전환이 발견되면 추가되는 애니메이션에 따라 값이 보간됩니다.

이 예는 그래프 내에서 GraphTransition을 정의하는 방법을 보여줍니다.

import QtGraphs

GraphsView {
    LineSeries {
        GraphTransition {
            GraphPointAnimation {}
        }
    }

    SplineSeries {
        GraphTransition {
            SplineControlAnimation {}
        }
    }
}

참고: 그래프 전환을 사용하려면 애니메이션을 적용해야 하는 그래프 안에 직접 정의해야 합니다. 현재 XYSeries 만 지원됩니다.

GraphPointAnimationSplineControlAnimation참조하세요 .

속성 문서

TransitionType : enumeration

트랜지션의 유형입니다.

Constant설명
None전환이 없습니다.
PointAdded포인트가 추가되었습니다.
PointReplaced포인트가 교체되었습니다.
PointRemoved포인트가 제거되었습니다.

animations : list<object>

GraphTransition 에 있는 모든 애니메이션을 담는 컨테이너입니다. 현재 추가 및 지우는 애니메이션만 지원합니다. 기본적으로 목록은 비어 있습니다.


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