QInputAspect Class

class Qt3DInput::QInputAspect

Responsible for creating physical devices and handling associated jobs. \since 5.5. More...

Header: #include <QInputAspect>
Inherits: Qt3DCore::QAbstractAspect

Public Functions

QInputAspect(QObject *parent = nullptr)
virtual ~QInputAspect()
QStringList availablePhysicalDevices() const
QAbstractPhysicalDevice *createPhysicalDevice(const QString &name)

Detailed Description

\inheritsQt3DCore::QAbstractAspect \inmodule Qt3DInput

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.

[virtual noexcept] QInputAspect::~QInputAspect()

\internal

QStringList QInputAspect::availablePhysicalDevices() const

Returns a list of all available physical devices.

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.

Note: Caller is responsible for ownership.