將動畫分組在一起的類。 更多...
| 頭: | #include <QAnimationGroup> |
| qmake: | QT += 3danimation |
| Since: | Qt 5.9 |
| 繼承: | QObject |
該類在 Qt 5.9 引入。
| QAnimationGroup (QObject * parent = nullptr) | |
| void | addAnimation (Qt3DAnimation::QAbstractAnimation * animation ) |
| QVector<Qt3DAnimation::QAbstractAnimation *> | animationList () |
| float | duration () const |
| QString | name () const |
| float | position () const |
| void | removeAnimation (Qt3DAnimation::QAbstractAnimation * animation ) |
| void | setAnimations (const QVector<Qt3DAnimation::QAbstractAnimation *> & animations ) |
| void | setName (const QString & name ) |
| void | setPosition (float position ) |
| void | durationChanged (float duration ) |
| void | nameChanged (const QString & name ) |
| void | positionChanged (float position ) |
Qt3DAnimation::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.
Holds the maximum duration of the animations in the group.
訪問函數:
| float | duration () const |
通知程序信號:
| void | durationChanged (float duration ) |
Holds the name of the animation group.
訪問函數:
| QString | name () const |
| void | setName (const QString & name ) |
通知程序信號:
| void | nameChanged (const QString & name ) |
Holds the animation position.
訪問函數:
| float | position () const |
| void | setPosition (float position ) |
通知程序信號:
| void | positionChanged (float position ) |
Constructs an QAnimationGroup with parent .
Adds new animation to the group.
Returns the list of animations in the group.
移除 animation from the group.
設置 animations to the group. Old animations are removed.