QActionInput Class
class Qt3DInput::QActionInputQActionInput에는 입력 이벤트를 트리거하는 데 사용되는 장치 및 버튼이 저장됩니다. 더 보기...
헤더: | #include <QActionInput> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake: | QT += 3dinput |
QML에서: | ActionInput |
상속합니다: | Qt3DInput::QAbstractActionInput |
상태: | Deprecated |
속성
- 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 에 대한 알림 신호입니다.
© 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.