QAnimationCallback Class

class Qt3DAnimation::QAnimationCallback

Represents an animation callback object. More...

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

Public Types

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

Public Functions

virtual void valueChanged(const QVariant &value) = 0

Detailed Description

Member Type Documentation

enum QAnimationCallback::Flagflags QAnimationCallback::Flags

Flags to indicate how the valueChanged() function is called.

Constant Value Description
Qt3DAnimation::QAnimationCallback::OnOwningThread 0x0 Callback function is called on the owning (GUI or main) thread.
Qt3DAnimation::QAnimationCallback::OnThreadPool 0x01 Callback function is called on the thread pool's worker thread.

The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.

Member Function Documentation

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

Callback function that is triggered for changes in the animated value.

See also QCallbackMapping::setCallback().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.0/qt3danimation-qanimationcallback.html