En esta página

Qt3DAnimation::QAnimationCallback Class

class Qt3DAnimation::QAnimationCallback

Representa un objeto callback de animación. Más...

Cabecera: #include <QAnimationCallback>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Status: Obsoleto

Tipos Públicos

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

Funciones Públicas

virtual void valueChanged(const QVariant &value) = 0

Descripción detallada

Documentación de tipos de miembros

enum QAnimationCallback::Flag
flags QAnimationCallback::Flags

Flags para indicar cómo se llama a la función valueChanged().

ConstanteValorDescripción
Qt3DAnimation::QAnimationCallback::OnOwningThread0x0La función callback es llamada en el thread propietario (GUI o principal).
Qt3DAnimation::QAnimationCallback::OnThreadPool0x01La función Callback es llamada en el thread worker del thread pool.

El tipo Flags es un typedef para QFlags<Flag>. Almacena una combinación OR de valores Flag.

Documentación de las funciones miembro

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

Función de devolución de llamada que se activa para los cambios en la animación value.

Véase también 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.