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

詳細説明

メンバ型の説明

enum QAnimationCallback::Flag
flags QAnimationCallback::Flags

valueChanged() 関数がどのように呼び出されるかを示すフラグ。

定数説明
Qt3DAnimation::QAnimationCallback::OnOwningThread0x0コールバック関数は、所有する(GUI またはメイン)スレッドで呼び出されます。
Qt3DAnimation::QAnimationCallback::OnThreadPool0x01コールバック関数は、スレッドプールのワーカースレッドで呼び出されます。

Flags 型はQFlags<Flag> の typedef です。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.