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

QAbstractPhysicalDeviceProxy Class

Qt3DInput::QAbstractPhysicalDeviceProxy acts as a proxy for an actual Qt3DInput::QQAbstractPhysicalDevice device.

This class was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstractPhysicalDeviceProxy Class

  • Header: QAbstractPhysicalDeviceProxy

  • Since: Qt 5.8

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dinput)

    target_link_libraries(mytarget PRIVATE Qt6::3dinput)

  • qmake: QT += 3dinput

  • Inherits: Qt3DInput::QAbstractPhysicalDevice

Detailed Description

Qt3DInput::QAbstractPhysicalDeviceProxy can be used to facilitate exposing a physical device to users. It alleviates the need to introspect the axis and buttons based on their names.

It is typcally used through subclassing allowing to set the device name and defining enums for the various axis and buttons of your targeted device.

At runtime, the status property will be updated to reflect whether an actual device matching the device name could be created.

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