QAnimationCallback Class

class Qt3DAnimation ::QAnimationCallback

表示动画回调对象。 更多...

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

公共类型

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

公共函数

virtual void valueChanged (const QVariant & value ) = 0

详细描述

成员类型文档编制

enum QAnimationCallback:: Flag
flags QAnimationCallback:: Flags

Flags to indicate how the valueChanged () 函数被调用。

常量 描述
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.

Flags 类型是 typedef 对于 QFlags <Flag>。它存储 Flag 值的 OR 组合。

成员函数文档编制

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

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

另请参阅 QCallbackMapping::setCallback ().