このページでは

Qt3DLogic::QFrameAction Class

class Qt3DLogic::QFrameAction

各フレームごとに同期関数を実行する方法を提供します。詳細...

ヘッダー: #include <qframeaction.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dlogic)
target_link_libraries(mytarget PRIVATE Qt6::3dlogic)
qmake: QT += 3dlogic
QML内: FrameAction
継承元: Qt3DCore::QComponent
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

パブリック関数

QFrameAction(Qt3DCore::QNode *parent = nullptr)

シグナル

void triggered(float dt)

詳細な説明

QFrameAction を使用すると、Qt3D バックエンドと同期して、各フレームでタスクを実行することができます。これは、アプリケーションロジックの一部を実装したり、後で Qt3D の追加機能として組み込むことができる機能のプロトタイプを作成したりするのに役立ちます。

たとえば、Qt Quick アニメーション要素が完全に同期されておらず、場合によってはカクつきが生じる可能性がある場合、QFrameAction を使用することで、Qt3D エンジンと同期してプロパティをアニメーション化することができます。

各フレームで独自のコードを実行するには、QFrameAction::triggered シグナルに接続します。

メンバ関数のドキュメント

[explicit] QFrameAction::QFrameAction(Qt3DCore::QNode *parent = nullptr)

親がparent である新しいQFrameActionインスタンスを作成します。

[signal] void QFrameAction::triggered(float dt)

この信号は各フレームごとに送信され、dt は前回のトリガー発生からの経過時間(秒単位)を表します。

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