このページでは

Qt3DAnimation::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 : float

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

アクセス関数:

float duration() const

通知シグナル:

void durationChanged(float duration)

name : QString

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

アクセス関数:

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

Notifierシグナル:

void nameChanged(const QString &name)

position : float

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

アクセス関数:

float position() const
void setPosition(float position)

Notifierシグナル:

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 をそのグループに設定します。古いアニメーションは削除されます。

© 2026 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.