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 기능으로 통합될 수 있는 기능의 프로토타입을 만드는 데 유용합니다.
예를 들어, QFrameAction을 사용하면 Qt Quick 애니메이션 요소가 완벽하게 동기화되지 않아 경우에 따라 끊김 현상이 발생할 수 있는 상황에서 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.