Qt3DInput::QActionInput Class
class Qt3DInput::QActionInputQActionInput은 입력 이벤트를 발생시키는 데 사용되는 Device와 Buttons를 저장합니다. 더 보기...
| 헤더: | #include <qactioninput.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| QML에서: | ActionInput |
| 상속: | Qt3DInput::QAbstractActionInput |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
- buttons : QList<int>
- sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
공개 함수
| QActionInput(Qt3DCore::QNode *parent = nullptr) | |
| QList<int> | buttons() const |
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
공개 슬롯
| void | setButtons(const QList<int> &buttons) |
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
신호
| void | buttonsChanged(const QList<int> &buttons) |
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
속성 문서
buttons : QList<int>
이 액션을 실행할 수 있는 버튼을 포함합니다.
액세스 함수:
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
알림 신호:
| void | buttonsChanged(const QList<int> &buttons) |
sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
QActionInput 의 전류 공급 장치.
액세스 기능:
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
알림 신호:
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
멤버 함수 설명서
[explicit] QActionInput::QActionInput(Qt3DCore::QNode *parent = nullptr)
parent 를 사용하여 새로운 QActionInput 인스턴스를 생성합니다.
[signal] void QActionInput::buttonsChanged(const QList<int> &buttons)
이 신호는 액션 입력과 연관된 버튼이 변경될 때 발생합니다. 변경된 버튼은 다음과 같습니다. buttons
참고: 속성 buttons 에 대한알림 신호입니다.
[slot] void QActionInput::setButtons(const QList<int> &buttons)
QActionInput 인스턴스를 트리거하는 버튼을 buttons 로 설정하세요.
참고: buttons 속성에 대한세터 함수입니다.
buttons()도 참조하십시오 .
[signal] void QActionInput::sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)
이 신호는 액션 입력과 연결된 소스 장치가 ‘ sourceDevice ’로 변경될 때 발생합니다.
참고: 속성 sourceDevice 에 대한알림 신호입니다.
© 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.