QActionInput Class
(Qt3DInput::QActionInput)QActionInput stores Device and Buttons used to trigger an input event. More...
Header: | #include <QActionInput> |
qmake: | QT += 3dinput |
Since: | Qt 5.7 |
Instantiated By: | ActionInput |
Inherits: | Qt3DInput::QAbstractActionInput |
This class was introduced in Qt 5.7.
Properties
- buttons : QVector<int>
- sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QActionInput(Qt3DCore::QNode *parent = nullptr) | |
QVector<int> | buttons() const |
Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Public Slots
void | setButtons(const QVector<int> &buttons) |
void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | buttonsChanged(const QVector<int> &buttons) |
void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Related Non-Members
typedef | QNodePtr |
typedef | QNodeVector |
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
Property Documentation
buttons : QVector<int>
Holds the buttons that can trigger this Action.
Access functions:
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.
Access functions:
Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Notifier signal:
void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Member Function Documentation
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.
See also 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.
Note: Notifier signal for property sourceDevice.