表示动画回调对象。 更多...
头: | #include <QAnimationCallback> |
qmake: | QT += 3danimation |
enum | Flag { OnOwningThread, OnThreadPool } |
flags | Flags |
virtual void | valueChanged (const QVariant & value ) = 0 |
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 ().