このページでは

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

Notifier シグナル:

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.