PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup¶
- class QAnimationGroup¶
- A class grouping animations together. - Details- QAnimationGroupclass 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.- Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - addAnimation()
- def - animationList()
- def - duration()
- def - name()
- def - position()
- def - setAnimations()
 - Slots¶- def - setName()
- def - setPosition()
 - Signals¶
- def - nameChanged()
 - 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 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property durationᅟ: float¶
 - Holds the maximum duration of the animations in the group. - Access functions:
- Signal - durationChanged()
 
 - property nameᅟ: str¶
 - Holds the name of the animation group. - Access functions:
- Signal - nameChanged()
 
 - property positionᅟ: float¶
 - Holds the animation position. - Access functions:
 - Constructs an - QAnimationGroupwith- parent.- addAnimation(animation)¶
- Parameters:
- animation – - QAbstractAnimation
 
 - Adds new - animationto 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:
- animation – - QAbstractAnimation
 
 - Removes - animationfrom the group.- setAnimations(animations)¶
- Parameters:
- animations – .list of Qt3DAnimation.QAbstractAnimation 
 
 - Sets the - animationsto 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ᅟ.