이 페이지에서

Qt3DInput::QKeyboardDevice Class

class Qt3DInput::QKeyboardDevice

QKeyboardDevice는 연결된 QQKeyboardHandler 객체에 키보드 이벤트를 전달하는 역할을 합니다. 더 보기...

헤더: #include <qkeyboarddevice.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
QML에서: KeyboardDevice
상속: Qt3DInput::QAbstractPhysicalDevice
상태: 사용 중단됨

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

속성

공개 함수

QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)
Qt3DInput::QKeyboardHandler *activeInput() const

재구현된 공용 함수

virtual int axisCount() const override
virtual int axisIdentifier(const QString &name) const override
virtual QStringList axisNames() const override
virtual int buttonCount() const override
virtual int buttonIdentifier(const QString &name) const override
virtual QStringList buttonNames() const override

신호

void activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput)

상세 설명

속성 설명서

[read-only] activeInput : Qt3DInput::QKeyboardHandler*

장치의 활성 QKeyboardHandler를 보유합니다.

액세스 함수:

Qt3DInput::QKeyboardHandler *activeInput() const

알림 신호:

void activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput)

멤버 함수 설명서

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

parent 를 사용하여 새로운 QKeyboardDevice 인스턴스를 생성합니다.

[override virtual] int QKeyboardDevice::axisCount() const

QAbstractPhysicalDevice::axisCount() const를 재구현합니다.

축의 개수를 반환합니다.

참고: 현재는 항상 0을 반환합니다.

[override virtual] int QKeyboardDevice::axisIdentifier(const QString &name) const

QAbstractPhysicalDevice::axisIdentifier(const QString &name) const 함수를 재구현합니다.

name 과 일치하는 axisIdentifier를 반환합니다.

[override virtual] QStringList QKeyboardDevice::axisNames() const

QAbstractPhysicalDevice::axisNames() const를 재구현합니다.

축 이름을 반환합니다.

참고: 현재는 항상 빈 QStringList 를 반환합니다.

[override virtual] int QKeyboardDevice::buttonCount() const

QAbstractPhysicalDevice::buttonCount() const를 재구현합니다.

버튼 개수를 반환합니다.

[override virtual] int QKeyboardDevice::buttonIdentifier(const QString &name) const

QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const를 재구현합니다.

name 와 일치하는 buttonIdentifier를 반환합니다.

[override virtual] QStringList QKeyboardDevice::buttonNames() const

QAbstractPhysicalDevice::buttonNames() const를 재구현합니다.

버튼 이름을 반환합니다.

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