class QAnimationGroup#

A class grouping animations together. More

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup

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#

QAnimationGroup class is used to group multiple animations so that they can act as one animation. The position set to the group is also set to all animations in a group. The duration is the maximum of the individual animations. The animations can be any supported animation type and do not have to have the same name.

Note

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

property durationᅟ: float#

Holds the maximum duration of the animations in the group.

Access functions:
property nameᅟ: str#

Holds the name of the animation group.

Access functions:
property positionᅟ: float#

Holds the animation position.

Access functions:
__init__([parent=None])#
Parameters:

parentQObject

Constructs an QAnimationGroup with parent.

addAnimation(animation)#
Parameters:

animationQAbstractAnimation

Adds new animation to the group.

animationList()#
Return type:

.list of Qt3DAnimation.QAbstractAnimation

Returns the list of animations in the group.

duration()#
Return type:

float

Getter of property durationᅟ .

durationChanged(duration)#
Parameters:

duration – float

Notification signal of property durationᅟ .

name()#
Return type:

str

See also

setName()

Getter of property nameᅟ .

nameChanged(name)#
Parameters:

name – str

Notification signal of property nameᅟ .

position()#
Return type:

float

See also

setPosition()

Getter of property positionᅟ .

positionChanged(position)#
Parameters:

position – float

Notification signal of property positionᅟ .

removeAnimation(animation)#
Parameters:

animationQAbstractAnimation

Removes animation from the group.

setAnimations(animations)#
Parameters:

animations – .list of Qt3DAnimation.QAbstractAnimation

Sets the animations to the group. Old animations are removed.

setName(name)#
Parameters:

name – str

See also

name()

Setter of property nameᅟ .

setPosition(position)#
Parameters:

position – float

See also

position()

Setter of property positionᅟ .