Sur cette page

Qt3DAnimation::QAnimationCallback Class

class Qt3DAnimation::QAnimationCallback

Représente un objet de rappel d'animation. En savoir plus...

En-tête : #include <qanimationcallback.h>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake : QT += 3danimation
Statut : Aperçu technologique

Cette classe est en avant-première technologique et est susceptible d'être modifiée.

Types publics

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

Fonctions publiques

virtual void valueChanged(const QVariant &value) = 0

Description détaillée

Documentation sur les types de membres

enum QAnimationCallback::Flag
flags QAnimationCallback::Flags

Indicateurs permettant de préciser comment la fonction ` valueChanged()` est appelée.

ConstanteValeurDescription
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 un thread de travail du pool de threads.

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

Documentation des fonctions membres

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

Fonction de rappel déclenchée en cas de modifications apportées à l'value animé.

Voir aussi 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.