En esta página

Qt3DInput::QKeyboardDevice Class

class Qt3DInput::QKeyboardDevice

QKeyboardDevice se encarga de enviar eventos de teclado a los objetos QQKeyboardHandler adjuntos. Más...

Cabecera: #include <QKeyboardDevice>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
En QML: KeyboardDevice
Hereda: Qt3DInput::QAbstractPhysicalDevice
Status: Obsoleto

Propiedades

Funciones públicas

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

Funciones públicas reimplementadas

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

Señales

void activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput)

Descripción detallada

Documentación de propiedades

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

Contiene la dirección QKeyboardHandler activa del dispositivo.

Funciones de acceso:

Qt3DInput::QKeyboardHandler *activeInput() const

Señal del notificador:

void activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput)

Documentación de la función miembro

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

Construye una nueva instancia de QKeyboardDevice con parent.

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

Reimplementa: QAbstractPhysicalDevice::axisCount() const.

Devuelve el número de ejes.

Nota: Actualmente siempre devuelve cero.

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

Reimplementa: QAbstractPhysicalDevice::axisIdentifier(const QString &name) const.

Devuelve el axisIdentifier que coincide con name.

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

Reimplementa: QAbstractPhysicalDevice::axisNames() const.

Devuelve los nombres de los ejes.

Nota: Actualmente devuelve siempre vacío QStringList.

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

Reimplementa: QAbstractPhysicalDevice::buttonCount() const.

Devuelve el recuento de botones.

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

Reimplementa: QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const.

Devuelve el buttonIdentifier que coincide con name.

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

Reimplementa: QAbstractPhysicalDevice::buttonNames() const.

Devuelve los nombres de los botones.

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