Класс QKeyboardDevice
класс Qt3DInput::QKeyboardDeviceКласс QKeyboardDevice отвечает за рассылку событий клавиатуры подключенным объектам QQKeyboardHandler. Подробнее...
| Заголовок: | #include <QKeyboardDevice> |
| CMake: | find_package(Qt6 COMPONENTS 3dinput REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| С момента: | Qt 5.5 |
| Создается из: | KeyboardDevice |
| Наследует: | Qt3DInput::QAbstractPhysicalDevice |
Свойства
- activeInput : Qt3DInput::QKeyboardHandler* const
Открытые функции
| 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* const
Содержит активный QKeyboardHandler устройства.
Функции доступа:
| Qt3DInput::QKeyboardHandler * | activeInput() const |
Сигнал уведомления:
| void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
Документация функций-членов
QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)
Создаёт новый экземпляр QKeyboardDevice с parent.
[override virtual] int QKeyboardDevice::axisCount() const
Переопределяет: QAbstractPhysicalDevice::axisCount() const.
Возвращает количество осей.
Примечание: В настоящее время всегда возвращает ноль.
[override virtual] int QKeyboardDevice::axisIdentifier(const QString &name) const
Переопределяет: QAbstractPhysicalDevice::axisIdentifier(const QString &name) const.
Возвращает axisIdentifier, соответствующий name.
[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.
Возвращает buttonIdentifier, соответствующий name.
[override virtual] QStringList QKeyboardDevice::buttonNames() const
Переопределяет: QAbstractPhysicalDevice::buttonNames() const.
Возвращает имена кнопок.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.0/qt3dinput-qkeyboarddevice.html