QInputSequence Class

( Qt3DInput::QInputSequence )

QInputSequence represents a set of QAbstractActionInput 's that must be triggerd one after the other. 更多...

头: #include <QInputSequence>
qmake: QT += 3dinput
Since: Qt 5.7
实例化: InputSequence
继承: Qt3DInput::QAbstractActionInput

特性

公共函数

QInputSequence (Qt3DCore::QNode * parent = nullptr)
void addSequence (QAbstractActionInput * input )
int buttonInterval () const
void removeSequence (QAbstractActionInput * input )
QVector<QAbstractActionInput *> sequences () const
int timeout () const

公共槽

void setButtonInterval (int buttonInterval )
void setTimeout (int timeout )

信号

void buttonIntervalChanged (int buttonInterval )
void timeoutChanged (int timeout )

额外继承成员

详细描述

QInputSequence represents a set of QAbstractActionInput 's that must be triggerd one after the other.

特性文档编制

buttonInterval : int

The maximum time in between consecutive QAbstractActionInput 's in the input sequence. The time is in milliseconds.

访问函数:

int buttonInterval () const
void setButtonInterval (int buttonInterval )

通知程序信号:

void buttonIntervalChanged (int buttonInterval )

timeout : int

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

访问函数:

int timeout () const
void setTimeout (int timeout )

通知程序信号:

void timeoutChanged (int timeout )

成员函数文档编制

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

构造新的 QInputSequence 采用父级 parent .

void QInputSequence:: addSequence ( QAbstractActionInput * input )

Append the QAbstractActionInput input to the end of this QInputSequence 's sequence vector.

另请参阅 removeSequence .

int QInputSequence:: buttonInterval () const

Returns the maximum time in between consecutive QAbstractActionInput 's in the input sequence. The time is in milliseconds

注意: Getter 函数对于特性 buttonInterval .

另请参阅 setButtonInterval ().

void QInputSequence:: removeSequence ( QAbstractActionInput * input )

Remove the QAbstractActionInput input 从此 QInputSequence 's sequence vector.

另请参阅 addSequence .

QVector < QAbstractActionInput *> QInputSequence:: sequences () const

返回 QInputSequence 's sequence vector.

int QInputSequence:: timeout () const

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

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

另请参阅 setTimeout ().