QInputAspect Class

class Qt3DInput ::QInputAspect

Responsible for creating physical devices and handling associated jobs. 更多...

头: #include <QInputAspect>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
继承: Qt3DCore::QAbstractAspect

公共函数

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

详细描述

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.

成员函数文档编制

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