QAbstractPhysicalDeviceProxy Class

( Qt3DInput::QAbstractPhysicalDeviceProxy )

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

头: #include <QAbstractPhysicalDeviceProxy>
qmake: QT += 3dinput
Since: Qt 5.8
继承: Qt3DInput::QAbstractPhysicalDevice

公共类型

enum DeviceStatus { Ready, NotFound }

特性

公共函数

QString deviceName () const
Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status () const

重实现公共函数

virtual int axisCount () const override
virtual int axisIdentifier (const QString & name ) const override
virtual QStringList axisNames () const override
virtual int buttonCount () const override
virtual int buttonIdentifier (const QString & name ) const override
virtual QStringList buttonNames () const override

信号

void statusChanged (QAbstractPhysicalDeviceProxy::DeviceStatus status )

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

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

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.

成员类型文档编制

enum QAbstractPhysicalDeviceProxy:: DeviceStatus

特性文档编制

deviceName : const QString

访问函数:

QString deviceName () const

status : const QAbstractPhysicalDeviceProxy::DeviceStatus

访问函数:

Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status () const

通知程序信号:

void statusChanged (QAbstractPhysicalDeviceProxy::DeviceStatus status )

成员函数文档编制

[override virtual] int QAbstractPhysicalDeviceProxy:: axisCount () const

[override virtual] int QAbstractPhysicalDeviceProxy:: axisIdentifier (const QString & name ) const

[override virtual] QStringList QAbstractPhysicalDeviceProxy:: axisNames () const

[override virtual] int QAbstractPhysicalDeviceProxy:: buttonCount () const

[override virtual] int QAbstractPhysicalDeviceProxy:: buttonIdentifier (const QString & name ) const

[override virtual] QStringList QAbstractPhysicalDeviceProxy:: buttonNames () const