PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation

class QAbstractAnimation

An abstract base class for Qt3D animations. More

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation

Inherited by: QVertexBlendAnimation, QMorphingAnimation, QKeyframeAnimation

Synopsis

Properties

Methods

Slots

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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.

class 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

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property animationNameᅟ: str

Holds the name of the animation.

Access functions:
property animationTypeᅟ: Qt3DAnimation.QAbstractAnimation.AnimationType

Holds the type of the animation.

Access functions:
property durationᅟ: float

Holds the duration of the animation.

Access functions:
property positionᅟ: float

Holds the current position of the animation.

Access functions:
animationName()
Return type:

str

See also

setAnimationName()

Getter of property animationNameᅟ .

animationNameChanged(name)
Parameters:

name – str

Notification signal of property animationNameᅟ .

animationType()
Return type:

AnimationType

Getter of property animationTypeᅟ .

duration()
Return type:

float

See also

setDuration()

Getter of property durationᅟ .

durationChanged(duration)
Parameters:

duration – float

Notification signal of property durationᅟ .

position()
Return type:

float

See also

setPosition()

Getter of property positionᅟ .

positionChanged(position)
Parameters:

position – float

Notification signal of property positionᅟ .

setAnimationName(name)
Parameters:

name – str

See also

animationName()

Setter of property animationNameᅟ .

setDuration(duration)
Parameters:

duration – float

Sets the duration of the animation.

See also

duration()

setPosition(position)
Parameters:

position – float

See also

position()

Setter of property positionᅟ .