이 페이지에서

GraphPointAnimation QML Type

점의 애니메이션을 나타내는 애니메이션 유형입니다. 더 보기...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

속성

상세 설명

GraphPointAnimation은 점의 애니메이션 방식을 정의하는 QVariantAnimation 에서 파생된 애니메이션 유형입니다. 이 유형은 애니메이션에 QVariantAnimation 의 기능과 속성(예: duration 및 easing)을 활용할 수 있습니다. 이러한 애니메이션은 QParallelAnimationGroup 내에 포함되어 있으므로 병렬로 실행됩니다.

이 예제는 GraphPointAnimation을 사용하여 점들이 1000ms의 duration 와 OutCubic의 easing 로 애니메이션되도록 설정하는 방법을 보여줍니다:

import QtGraphs

GraphsView {
    LineSeries {
        GraphTransition {
            GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic  }
        }
    }
}

XYSeries 의 경우, 이는 시리즈 내에 정의된 점들의 메인 목록으로 간주됩니다. 점은 시작 값에서 끝 값까지 선형 보간됩니다.

참고: GraphPointAnimation은 현재 점이 추가되거나 제거될 때 시리즈의 마지막 점에 대해서만 애니메이션을 지원합니다. 점이 대체될 경우, 시리즈 내 점의 인덱스와 관계없이 애니메이션이 트리거됩니다.

GraphTransition 및 SplineControlAnimation도 참조하십시오 .

속성 설명서

AnimationState : enumeration

애니메이션 상태.

상수설명
Playing애니메이션이 재생 중입니다.
Stopped애니메이션이 중지되었습니다.

GraphAnimationType : enumeration

애니메이션 유형.

상수설명
GraphPointGraphPointAnimation 애니메이션입니다.
ControlPointControlPointAnimation 애니메이션입니다.

animating : GraphAnimation::AnimationState

애니메이션 상태를 유지합니다. 다음 중 하나입니다 GraphAnimation::AnimationState.

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