QAbstractAnimation#

An abstract base class for Qt3D animations. More

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation

Inherited by: QVertexBlendAnimation, QMorphingAnimation, QKeyframeAnimation

Synopsis#

Properties#

Functions#

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 PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation#

Note

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

property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationName: str#

Holds the name of the animation.

Access functions:
property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationType: AnimationType#

Holds the type of the animation.

Access functions:
property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.duration: float#

Holds the duration of the animation.

Access functions:
property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.position: float#

Holds the current position of the animation.

Access functions:
PySide6.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

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationName()#
Return type:

str

See also

setAnimationName()

Getter of property animationName .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationNameChanged(name)#
Parameters:

name – str

Notification signal of property animationName .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.animationType()#
Return type:

AnimationType

Getter of property animationType .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.duration()#
Return type:

float

See also

setDuration()

Getter of property duration .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.durationChanged(duration)#
Parameters:

duration – float

Notification signal of property duration .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.position()#
Return type:

float

See also

setPosition()

Getter of property position .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.positionChanged(position)#
Parameters:

position – float

Notification signal of property position .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setAnimationName(name)#
Parameters:

name – str

See also

animationName()

Setter of property animationName .

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setDuration(duration)#
Parameters:

duration – float

Sets the duration of the animation.

See also

duration()

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation.setPosition(position)#
Parameters:

position – float

See also

position()

Setter of property position .