Sur cette page

Qt3DAnimation::QAnimationCallback Class

class Qt3DAnimation::QAnimationCallback

Représente un objet de rappel d'animation. Plus d'informations...

En-tête : #include <QAnimationCallback>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake : QT += 3danimation
Statut : Déclassé

Types publics

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

Fonctions publiques

virtual void valueChanged(const QVariant &value) = 0

Description détaillée

Documentation des types de membres

enum QAnimationCallback::Flag
flags QAnimationCallback::Flags

Drapeaux indiquant comment la fonction valueChanged() est appelée.

ConstanteValeurDescription de la fonction
Qt3DAnimation::QAnimationCallback::OnOwningThread0x0La fonction de rappel est appelée sur le thread propriétaire (GUI ou principal).
Qt3DAnimation::QAnimationCallback::OnThreadPool0x01La fonction de rappel est appelée sur le thread de travail du pool de threads.

Le type Flags est un typedef pour QFlags<Flag>. Il stocke une combinaison OU de valeurs de drapeaux.

Documentation des fonctions membres

[pure virtual] void QAnimationCallback::valueChanged(const QVariant &value)

Fonction de rappel déclenchée en cas de modification de l'animation value.

Voir également QCallbackMapping::setCallback().

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