QAnimationCallback Class | Qt 3D 5.15.19 (original) (raw)

class Qt3DAnimation::QAnimationCallback

Represents an animation callback object. More...

Header: #include
qmake: QT += 3danimation

Public Types

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

Public Functions

Detailed Description

Member Type Documentation

enum QAnimationCallback::Flag

flags 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. 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().

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