QInputChord Class

(Qt3DInput::QInputChord)

QInputChord represents a set of QAbstractActionInput's that must be triggerd at once. 更多...

头文件: #include <QInputChord>
qmake: QT += 3dinput
开始支持版本: Qt 5.7
Instantiated By: InputChord
基类: Qt3DInput::QAbstractActionInput

属性

公有函数

QInputChord(Qt3DCore::QNode *parent = nullptr)
void addChord(QAbstractActionInput *input)
QVector<QAbstractActionInput *> chords() const
void removeChord(QAbstractActionInput *input)
int timeout() const

公有槽函数

void setTimeout(int timeout)

信号

void timeoutChanged(int timeout)

其他继承的成员

详细描述

QInputChord represents a set of QAbstractActionInput's that must be triggerd at once.

属性

timeout : int

The time in which all QAbstractActionInput's in the input chord must triggered within. The time is in milliseconds.

访问函数:

int timeout() const
void setTimeout(int timeout)

Notifier signal:

void timeoutChanged(int timeout)

成员函数

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

Constructs a new QInputChord with parent parent.

void QInputChord::addChord(QAbstractActionInput *input)

Append the QAbstractActionInput input to the end of this QInputChord's chord vector.

参见 removeChord.

QVector<QAbstractActionInput *> QInputChord::chords() const

Returns the QInputChord's chord vector.

void QInputChord::removeChord(QAbstractActionInput *input)

Remove the QAbstractActionInput input from this QInputChord's chord vector.

参见 addChord.

[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.

参见 timeout().