이 페이지에서

Qt3DInput::QAction Class

class Qt3DInput::QAction

동일한 이벤트를 트리거하는 일련의 QAbstractActionInput 를 연결합니다. 더 보기...

헤더: #include <QAction>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
QML에서: Action
상속: Qt3DCore::QNode
상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.

속성

공개 함수

QAction(Qt3DCore::QNode *parent = nullptr)
void addInput(Qt3DInput::QAbstractActionInput *input)
QList<Qt3DInput::QAbstractActionInput *> inputs() const
bool isActive() const
void removeInput(Qt3DInput::QAbstractActionInput *input)

신호

void activeChanged(bool isActive)

상세 설명

속성 설명서

[read-only] active : bool

작업이 활성화된 경우 ` true `를 반환합니다.

이 속성은 액션이 비활성화된 상태에서는 업데이트되지 않습니다.

액세스 함수:

bool isActive() const

알림 신호:

void activeChanged(bool isActive)

멤버 함수 설명서

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

parent 를 부모로 하는 새로운 QAction 인스턴스를 생성합니다.

void QAction::addInput(Qt3DInput::QAbstractActionInput *input)

이 액션을 트리거할 수 있는 입력 목록에 QAbstractActionInput input 을 추가합니다.

QList<Qt3DInput::QAbstractActionInput *> QAction::inputs() const

이 작업을 트리거할 수 있는 입력 항목의 목록을 반환합니다.

void QAction::removeInput(Qt3DInput::QAbstractActionInput *input)

이 액션을 트리거할 수 있는 입력 목록에서 QAbstractActionInput input 을 제거합니다.

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