QInputSequence Class

(Qt3DInput::QInputSequence)

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

头文件: #include <QInputSequence>
qmake: QT += 3dinput
开始支持版本: Qt 5.7
Instantiated By: 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)

Notifier signal:

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)

Notifier signal:

void timeoutChanged(int timeout)

成员函数

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

Constructs a new QInputSequence with parent 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

Note: Getter function for property buttonInterval.

参见 setButtonInterval().

void QInputSequence::removeSequence(QAbstractActionInput *input)

Remove the QAbstractActionInput input from this QInputSequence's sequence vector.

参见 addSequence.

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

Returns the 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

Note: Getter function for property timeout.

参见 setTimeout().