QActionInput Class

class Qt3DInput ::QActionInput

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

头: #include <QActionInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
实例化: ActionInput
继承: Qt3DInput::QAbstractActionInput

特性

公共函数

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

公共槽

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

信号

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

详细描述

特性文档编制

buttons : QList < int >

Holds the buttons that can trigger this Action.

访问函数:

QList<int> buttons () const
void setButtons (const QList<int> & buttons )

通知程序信号:

void buttonsChanged (const QList<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 )

成员函数文档编制

[explicit] QActionInput:: QActionInput ( Qt3DCore::QNode * parent = nullptr)

Constructs a new QActionInput instance with parent .

[signal] void QActionInput:: buttonsChanged (const QList < 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 QList < 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 .