QInputChord Class
(Qt3DInput::QInputChord)QInputChord represents a set of QAbstractActionInput's that must be triggerd at once. More...
Header: | #include <QInputChord> |
qmake: | QT += 3dinput |
Since: | Qt 5.7 |
Instantiated By: | InputChord |
Inherits: | Qt3DInput::QAbstractActionInput |
This class was introduced in Qt 5.7.
Properties
- timeout : int
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QInputChord(Qt3DCore::QNode *parent = nullptr) | |
void | addChord(Qt3DInput::QAbstractActionInput *input) |
QVector<Qt3DInput::QAbstractActionInput *> | chords() const |
void | removeChord(Qt3DInput::QAbstractActionInput *input) |
int | timeout() const |
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Public Slots
void | setTimeout(int timeout) |
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | timeoutChanged(int timeout) |
- 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
timeout : int
The time in which all QAbstractActionInput's in the input chord must triggered within. The time is in milliseconds.
Access functions:
int | timeout() const |
void | setTimeout(int timeout) |
Notifier signal:
void | timeoutChanged(int timeout) |
Member Function Documentation
QInputChord::QInputChord(Qt3DCore::QNode *parent = nullptr)
Constructs a new QInputChord with parent parent.
[slot]
void QInputChord::setTimeout(int timeout)
Sets the time in which all QAbstractActionInput's in the input chord must triggered within to timeout. The time is in milliseconds
Note: Setter function for property timeout.
See also timeout().
void QInputChord::addChord(Qt3DInput::QAbstractActionInput *input)
Append the QAbstractActionInput input to the end of this QInputChord's chord vector.
See also removeChord.
QVector<Qt3DInput::QAbstractActionInput *> QInputChord::chords() const
Returns the QInputChord's chord vector.
void QInputChord::removeChord(Qt3DInput::QAbstractActionInput *input)
Remove the QAbstractActionInput input from this QInputChord's chord vector.
See also addChord.