A class grouping animations together. 更多 …
def
addAnimation
(animation)
def
animationList
()
def
duration
()
def
name
()
def
position
()
def
removeAnimation
(animation)
def
setAnimations
(animations)
def
setName
(name)
def
setPosition
(position)
def
durationChanged
(duration)
def
nameChanged
(name)
def
positionChanged
(position)
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.
PySide2.Qt3DAnimation.Qt3DAnimation.
QAnimationGroup
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs an
QAnimationGroup
with
parent
.
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
addAnimation
(
animation
)
¶
animation
–
QAbstractAnimation
Adds new
animation
to the group.
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
animationList
(
)
¶
Returns the list of animations in the group.
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
duration
(
)
¶
float
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
durationChanged
(
duration
)
¶
duration
–
float
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
nameChanged
(
name
)
¶
name – unicode
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
position
(
)
¶
float
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
positionChanged
(
position
)
¶
position
–
float
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
removeAnimation
(
animation
)
¶
animation
–
QAbstractAnimation
移除
animation
from the group.
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
setAnimations
(
animations
)
¶
animations –
设置
animations
to the group. Old animations are removed.
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
setName
(
name
)
¶
name – unicode
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QAnimationGroup.
setPosition
(
position
)
¶
position
–
float
另请参阅