Qt3DAnimation.QAnimationGroup

A class grouping animations together. More

Inheritance diagram of PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup

Synopsis

Functions

Slots

Signals

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.

class PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup([parent=None])
param parent

QObject

Constructs an QAnimationGroup with parent .

PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.addAnimation(animation)
Parameters

animationQAbstractAnimation

Adds new animation to the group.

PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.animationList()
Return type

Returns the list of animations in the group.

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

float

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

durationfloat

PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.name()
Return type

unicode

See also

setName()

PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.nameChanged(name)
Parameters

name – unicode

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

float

See also

setPosition()

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

positionfloat

PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.removeAnimation(animation)
Parameters

animationQAbstractAnimation

Removes animation from the group.

PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.setAnimations(animations)
Parameters

animations

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

PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.setName(name)
Parameters

name – unicode

See also

name()

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

positionfloat

See also

position()