Qt3DAnimation.QAbstractAnimation

An abstract base class for Qt3D animations. More

Inheritance diagram of PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation

Inherited by: Qt3DAnimation.QKeyframeAnimation, Qt3DAnimation.QMorphingAnimation, Qt3DAnimation.QVertexBlendAnimation

Synopsis

Functions

Slots

Signals

Detailed Description

QAbstractAnimation is an abstract base class for all animations. QAbstractAnimation can not be directly instantiated, but rather through its subclasses. QAbstractAnimation specifies common properties for all Qt3D animations, such as animation name and type, current position and animation duration, while leaving the actual animating for the subclasses.

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.AnimationType

This enumeration specifies the type of the animation

Constant

Description

Qt3DAnimation.QAbstractAnimation.KeyframeAnimation

Simple keyframe animation implementation for QTransform

Qt3DAnimation.QAbstractAnimation.MorphingAnimation

Blend-shape morphing animation

Qt3DAnimation.QAbstractAnimation.VertexBlendAnimation

Vertex-blend animation

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationName()
Return type

unicode

See also

setAnimationName()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationNameChanged(name)
Parameters

name – unicode

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationType()
Return type

AnimationType

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.duration()
Return type

float

See also

setDuration()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.durationChanged(duration)
Parameters

durationfloat

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.position()
Return type

float

See also

setPosition()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.positionChanged(position)
Parameters

positionfloat

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setAnimationName(name)
Parameters

name – unicode

See also

animationName()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setDuration(duration)
Parameters

durationfloat

Sets the duration of the animation.

See also

duration()

PySide2.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setPosition(position)
Parameters

positionfloat

See also

position()