Qt3DAnimation::QAnimationCallback Class

class Qt3DAnimation::QAnimationCallback

代表动画回调对象。更多

头文件: #include <QAnimationCallback>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
状态:已废弃

公共类型

enum Flag { OnOwningThread, OnThreadPool }
flags Flags

公共函数

virtual void valueChanged(const QVariant &value) = 0

详细说明

成员类型文档

枚举 QAnimationCallback::Flag
flags QAnimationCallback::Flags

用于指示如何调用valueChanged() 函数的标志。

常量说明
Qt3DAnimation::QAnimationCallback::OnOwningThread0x0在拥有线程(GUI 或主)上调用回调函数。
Qt3DAnimation::QAnimationCallback::OnThreadPool0x01回调函数在线程池的工作线程上调用。

Flags 类型是QFlags<Flag> 的类型定义。它存储 Flag 值的 OR 组合。

成员函数文档

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

回调函数,当动画value 发生变化时触发。

另请参阅 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.