このページでは

FrameAction QML Type

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

Import Statement: import Qt3D.Logic 2.12
In C++: QFrameAction
Inherits:

Component3D

Status: Deprecated

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

シグナル

詳細な説明

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

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

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

シグナルのドキュメント

triggered(real dt)

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

注: 対応するハンドラは onTriggered です。

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