QActionInput Class
(Qt3DInput::QActionInput)QActionInput stores Device and Buttons used to trigger an input event. 更多...
头文件: | #include <QActionInput> |
qmake: | QT += 3dinput |
开始支持版本: | Qt 5.7 |
Instantiated By: | ActionInput |
基类: | Qt3DInput::QAbstractActionInput |
属性
- buttons : QVector<int>
- sourceDevice : Qt3DInput::QAbstractPhysicalDevice *
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QActionInput(Qt3DCore::QNode *parent = nullptr) | |
QVector<int> | buttons() const |
QAbstractPhysicalDevice * | sourceDevice() const |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setButtons(const QVector<int> &buttons) |
void | setSourceDevice(QAbstractPhysicalDevice *sourceDevice) |
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | buttonsChanged(const QVector<int> &buttons) |
void | sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
QActionInput stores Device and Buttons used to trigger an input event.
属性
buttons : QVector<int>
Holds the buttons that can trigger this Action.
访问函数:
QVector<int> | buttons() const |
void | setButtons(const QVector<int> &buttons) |
Notifier signal:
void | buttonsChanged(const QVector<int> &buttons) |
sourceDevice : Qt3DInput::QAbstractPhysicalDevice *
The current source device of the QActionInput.
访问函数:
QAbstractPhysicalDevice * | sourceDevice() const |
void | setSourceDevice(QAbstractPhysicalDevice *sourceDevice) |
Notifier signal:
void | sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice) |
成员函数
QActionInput::QActionInput(Qt3DCore::QNode *parent = nullptr)
Constructs a new QActionInput instance with parent.
[signal]
void QActionInput::buttonsChanged(const QVector<int> &buttons)
This signal is emitted when the buttons associated with the action input is changed. The buttons changed are buttons
Note: Notifier signal for property buttons.
[slot]
void QActionInput::setButtons(const QVector<int> &buttons)
Set the buttons to trigger the QActionInput instance to buttons.
Note: Setter function for property buttons.
参见 buttons().
[signal]
void QActionInput::sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice)
This signal is emitted when the source device associated with the action input is changed to sourceDevice.
Note: Notifier signal for property sourceDevice.