QActionInput Class

( Qt3DInput::QActionInput )

QActionInput stores Device and Buttons used to trigger an input event. 更多...

頭: #include <QActionInput>
qmake: QT += 3dinput
Since: Qt 5.7
實例化: ActionInput
繼承: Qt3DInput::QAbstractActionInput

特性

公共函數

QActionInput (Qt3DCore::QNode * parent = nullptr)
QVector<int> buttons () const
Qt3DInput::QAbstractPhysicalDevice * sourceDevice () const

公共槽

void setButtons (const QVector<int> & buttons )
void setSourceDevice (Qt3DInput::QAbstractPhysicalDevice * sourceDevice )

信號

void buttonsChanged (const QVector<int> & buttons )
void sourceDeviceChanged (Qt3DInput::QAbstractPhysicalDevice * sourceDevice )

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

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 )

通知程序信號:

void buttonsChanged (const QVector<int> & buttons )

sourceDevice : Qt3DInput::QAbstractPhysicalDevice *

The current source device of the QActionInput .

訪問函數:

Qt3DInput::QAbstractPhysicalDevice * sourceDevice () const
void setSourceDevice (Qt3DInput::QAbstractPhysicalDevice * sourceDevice )

通知程序信號:

void sourceDeviceChanged (Qt3DInput::QAbstractPhysicalDevice * sourceDevice )

成員函數文檔編製

QActionInput:: QActionInput ( Qt3DCore::QNode * parent = nullptr)

構造新的 QActionInput 實例與 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

注意: 通知程序信號對於特性 buttons .

[slot] void QActionInput:: setButtons (const QVector < int > & buttons )

Set the buttons to trigger the QActionInput instance to buttons .

注意: setter 函數對於特性 buttons .

另請參閱 buttons ().

[signal] void QActionInput:: sourceDeviceChanged ( Qt3DInput::QAbstractPhysicalDevice * sourceDevice )

This signal is emitted when the source device associated with the action input is changed to sourceDevice .

注意: 通知程序信號對於特性 sourceDevice .