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

QInputAspect Class

Responsible for creating physical devices and handling associated jobs.

This class was introduced in Qt 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QInputAspect Class

  • Header: QInputAspect

  • Since: Qt 5.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dinput)

    target_link_libraries(mytarget PRIVATE Qt6::3dinput)

  • qmake: QT += 3dinput

  • Inherits: Qt3DCore::QAbstractAspect

Detailed Description

QInputAspect is responsible for creating physical devices. It is also the object responsible establishing the jobs to run at a particular time from the current input setup.

Member Function Documentation

 

[explicit] QInputAspect::QInputAspect(QObject *parent = nullptr)

Constructs a new QInputAspect with parent.

QStringList QInputAspect::availablePhysicalDevices() const

Returns a list of all available physical devices.

Qt3DInput::QAbstractPhysicalDevice *QInputAspect::createPhysicalDevice(const QString &name)

Create a physical device identified by name using the input device integrations present returns a nullptr if it is not found.

Caller is responsible for ownership.

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