QInputChord Class

( Qt3DInput::QInputChord )

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

头: #include <QInputChord>
qmake: QT += 3dinput
Since: Qt 5.7
实例化: 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 )

通知程序信号:

void timeoutChanged (int timeout )

成员函数文档编制

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

构造新的 QInputChord 采用父级 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

返回 QInputChord 's chord vector.

void QInputChord:: removeChord ( QAbstractActionInput * input )

Remove the QAbstractActionInput input 从此 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

注意: Setter 函数对于特性 timeout .

另请参阅 timeout ().