QFrameAction Class

class Qt3DLogic::QFrameAction

フレームごとに同期関数を実行させる方法を提供する。さらに...

ヘッダー #include <QFrameAction>
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アスペクトに折り畳むことができる機能をプロトタイプ化するのに便利です。

例えば、QFrameActionはQt3Dエンジンと同期してプロパティをアニメーションさせるために使うことができます。Qt Quick アニメーションエレメントは完全に同期しているわけではなく、場合によってはスタッターの原因になります。

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

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

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

親を持つ新しい QFrameAction インスタンスをparent で構築します。

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

このシグナルは毎フレーム発せられ、dt は最後のトリガーからの時間(秒)である。

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