QAnimationGroup Class

class Qt3DAnimation::QAnimationGroup

アニメーションをグループ化したクラス。もっと見る...

ヘッダー #include <QAnimationGroup>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
を継承する: QObject
ステータス非推奨

プロパティ

パブリック機能

QAnimationGroup(QObject *parent = nullptr)
void addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
QList<Qt3DAnimation::QAbstractAnimation *> animationList()
float duration() const
QString name() const
float position() const
void removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)
void setAnimations(const QList<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 クラスは複数のアニメーションをグループ化し、1つのアニメーションとして動作させるために使用します。グループに設定された位置は、グループ内のすべてのアニメーションにも設定されます。持続時間は個々のアニメーションの最大値です。アニメーションはサポートされているアニメーションタイプであれば何でもよく、同じ名前である必要はありません。

プロパティの説明

[read-only] duration : const float

グループ内のアニメーションの最大継続時間を保持します。

アクセス機能

float duration() const

通知シグナル

void durationChanged(float duration)

name : QString

アニメーショングループの名前を保持します。

アクセス関数です:

QString name() const
void setName(const QString &name)

通知シグナル

void nameChanged(const QString &name)

position : float

アニメーションの位置を保持します。

アクセス機能

float position() const
void setPosition(float position)

通知シグナル

void positionChanged(float position)

メンバ関数ドキュメント

[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)

parent を持つ QAnimationGroup を構築します。

void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)

グループに新しいanimation

QList<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()

グループ内のアニメーションのリストを返します。

void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)

animation をグループから削除する。

void QAnimationGroup::setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)

animations をグループに設定します。古いアニメーションは削除されます。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.