QInputAspect Class | Qt 3D 5.13.0

Qt 5.13 | Qt 3D | C++ Classes | QInputAspect

Qt 5.13.0 Reference Documentation

# QInputAspect Class

(Qt3DInput::QInputAspect)

Responsible for creating physical devices and handling associated jobs. More...

Header: | #include <QInputAspect>
qmake: | QT += 3dinput
Since: | Qt 5.5
Inherits: | Qt3DCore::QAbstractAspect

This class was introduced in Qt 5.5.

- List of all members, including inherited members
- Obsolete members

## Public Functions

| QInputAspect(QObject *parent = nullptr)
QStringList | availablePhysicalDevices() const
Qt3DInput::QAbstractPhysicalDevice * | createPhysicalDevice(const QString &name)

- 30 public functions inherited from QObject

## Related Non-Members

typedef | QAspectJobPtr
typedef | QBackendNodeMapperPtr
typedef | QObjectList
QList<T> | qFindChildren(const QObject *obj, const QRegExp &regExp)
T | qobject_cast(QObject *object)
T | qobject_cast(const QObject *object)

## Macros

| QT3D_REGISTER_ASPECT(name, AspectType)
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
| Q_CLASSINFO(Name, Value)
| Q_DISABLE_COPY(Class)
| Q_DISABLE_COPY_MOVE(Class)
| Q_DISABLE_MOVE(Class)
| Q_EMIT
| Q_ENUM(...)
| Q_ENUM_NS(...)
| Q_FLAG(...)
| Q_FLAG_NS(...)
| Q_GADGET
| Q_INTERFACES(...)
| Q_INVOKABLE
| Q_NAMESPACE
| Q_OBJECT
| Q_PROPERTY(...)
| Q_REVISION
| Q_SET_OBJECT_NAME(Object)
| Q_SIGNAL
| Q_SIGNALS
| Q_SLOT
| Q_SLOTS

### Additional Inherited Members

- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
- 3 protected functions inherited from Qt3DCore::QAbstractAspect
- 9 protected functions inherited from QObject

## 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

### 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.

Note: Caller is responsible for ownership.