IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QKeyboardDevice Class

QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QKeyboardDevice Class

  • Header: QKeyboardDevice

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dinput)

    target_link_libraries(mytarget PRIVATE Qt6::3dinput)

  • qmake: QT += 3dinput

  • Inherited By:

  • Instantiated By: qml-qt3d-input-keyboarddevice.xml

  • Inherits: Qt3DInput::QAbstractPhysicalDevice

Detailed Description

 

Property Documentation

 

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

Holds the active QKeyboardHandler of the device.

Access functions:

  • *activeInput() const

Notifier signal:

  • void activeInputChanged( *activeInput)

Member Function Documentation

 

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

Constructs a new QKeyboardDevice instance with parent.

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

Reimplements: QAbstractPhysicalDevice::axisCount() const.

Returns the axis count.

Currently always returns zero.

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

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

Returns the axisIdentifier matching the name.

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

Reimplements: QAbstractPhysicalDevice::axisNames() const.

Returns the axis names.

Currently always returns empty QStringList.

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

Reimplements: QAbstractPhysicalDevice::buttonCount() const.

Returns the button count.

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

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

Returns the buttonIdentifier matching the name.

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

Reimplements: QAbstractPhysicalDevice::buttonNames() const.

Returns the button names.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+