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
상태: Deprecated

속성

공공 기능

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 : const 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 을 제거합니다.

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