QFrameAction Class
class Qt3DLogic::QFrameAction매 프레임마다 동기식 함수를 실행하는 방법을 제공합니다. 더 보기...
Header: | #include <QFrameAction> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dlogic) target_link_libraries(mytarget PRIVATE Qt6::3dlogic) |
qmake: | QT += 3dlogic |
QML에서: | FrameAction |
상속합니다: | Qt3DCore::QComponent |
상태: | Deprecated |
공용 함수
QFrameAction(Qt3DCore::QNode *parent = nullptr) |
시그널
void | triggered(float dt) |
상세 설명
QFrameAction은 Qt3D 백엔드와 동기화된 방식으로 매 프레임마다 작업을 수행할 수 있는 방법을 제공합니다. 이는 애플리케이션 로직의 일부 측면을 구현하고 나중에 추가 Qt3D 측면으로 접을 수 있는 기능을 프로토타이핑하는 데 유용합니다.
예를 들어, QFrameAction은 Qt Quick 애니메이션 요소가 완벽하게 동기화되지 않아 경우에 따라 끊김 현상이 발생할 수 있는 Qt3D 엔진과 동기화하여 프로퍼티에 애니메이션을 적용하는 데 사용할 수 있습니다.
자체 코드를 실행하려면 각 프레임마다 QFrameAction::triggered 신호에 연결하세요.
멤버 함수 문서
[explicit]
QFrameAction::QFrameAction(Qt3DCore::QNode *parent = nullptr)
부모가 parent 인 새 QFrameAction 인스턴스를 생성합니다.
[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.