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 (Qt3DInput::QAbstractActionInput * input )
QVector<Qt3DInput::QAbstractActionInput *> chords () const
void removeChord (Qt3DInput::QAbstractActionInput * input )
int timeout () const

公共槽

void setTimeout (int timeout )

信號

void timeoutChanged (int timeout )

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

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 ( Qt3DInput::QAbstractActionInput * input )

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

另請參閱 removeChord .

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

返迴 QInputChord 's chord vector.

void QInputChord:: removeChord ( Qt3DInput::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 ().