Qt3DInput::QKeyboardDevice Class
class Qt3DInput::QKeyboardDeviceQKeyboardDevice se encarga de distribuir los eventos del teclado a los objetos QQKeyboardHandler asociados. Más...
| Encabezado: | #include <qkeyboarddevice.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| En QML: | KeyboardDevice |
| Heredado de: | Qt3DInput::QAbstractPhysicalDevice |
| Estado: | Obsoleto |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
Propiedades
- activeInput : Qt3DInput::QKeyboardHandler*
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) |
Documentación de propiedades
[read-only] activeInput : Qt3DInput::QKeyboardHandler*
Contiene el QKeyboardHandler activo del dispositivo.
Funciones de acceso:
| Qt3DInput::QKeyboardHandler * | activeInput() const |
Señal de notificación:
| void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
Documentación de las funciones de miembro
[explicit] QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)
Crea 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 el « name ».
[override virtual] QStringList QKeyboardDevice::axisNames() const
Reimplementa: ` QAbstractPhysicalDevice::axisNames()` const.
Devuelve los nombres de los ejes.
Nota: Actualmente siempre devuelve un objeto ` QStringList` vacío.
[override virtual] int QKeyboardDevice::buttonCount() const
Reimplementa: ` QAbstractPhysicalDevice::buttonCount()` const.
Devuelve el número de botones.
[override virtual] int QKeyboardDevice::buttonIdentifier(const QString &name) const
Reimplementa: ` QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const`.
Devuelve el «buttonIdentifier» que coincide con el « 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.