QAnimationGroup#
A class grouping animations together. More…
Synopsis#
Properties#
Functions#
def
addAnimation
(animation)def
animationList
()def
duration
()def
name
()def
position
()def
removeAnimation
(animation)def
setAnimations
(animations)
Slots#
def
setName
(name)def
setPosition
(position)
Signals#
def
durationChanged
(duration)def
nameChanged
(name)def
positionChanged
(position)
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.
- class PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup([parent=None])#
- Parameters:
parent –
PySide6.QtCore.QObject
Constructs an QAnimationGroup
with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.duration: float#
Holds the maximum duration of the animations in the group.
- Access functions:
duration
()Signal
durationChanged
(duration)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.name: str#
Holds the name of the animation group.
- Access functions:
name
()setName
(name)Signal
nameChanged
(name)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.position: float#
Holds the animation position.
- Access functions:
position
()setPosition
(position)Signal
positionChanged
(position)
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.addAnimation(animation)#
- Parameters:
animation –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation
Adds new animation
to the group.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.animationList()#
Returns the list of animations in the group.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.duration()#
- Return type:
float
Getter of property duration
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.durationChanged(duration)#
- Parameters:
duration – float
Notification signal of property duration
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.name()#
- Return type:
str
See also
setName()
Getter of property name
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.nameChanged(name)#
- Parameters:
name – str
Notification signal of property name
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.position()#
- Return type:
float
See also
setPosition()
Getter of property position
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.positionChanged(position)#
- Parameters:
position – float
Notification signal of property position
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.removeAnimation(animation)#
- Parameters:
animation –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractAnimation
Removes animation
from the group.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.setAnimations(animations)#
- Parameters:
animations –
Sets the animations
to the group. Old animations are removed.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.setName(name)#
- Parameters:
name – str
See also
name()
Setter of property name
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.setPosition(position)#
- Parameters:
position – float
See also
position()
Setter of property position
.