InputSequence QML Type

QML frontend for the Qt3DInput::QInputSequence C++ 类。 更多...

导入语句: import Qt3D.Input 2.0
Since: Qt 5.7
实例化: QInputSequence

特性

信号

详细描述

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

The following example shows a chord that will be triggered by pressing the A and S keys together with a tolerance of 10 miliseconds between presses.

InputChord {
  tolerance: 10
  inputs: [
     ActionInput {
         sourceDevice: keyboardSourceDevice
         keys: [Qt.Key_A]
     },
     ActionInput {
        sourceDevice: keyboardSourceDevice
        keys: [Qt.Key_S]
     }
     ]
}
					

特性文档编制

buttonInterval : int

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


sequences : list < AbstractActionInput >

timeout : int

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


信号文档编制

void buttonIntervalChanged ()

此信号被发射当 buttonInterval of the input sequence is changed.

相应处理程序是 onButtonIntervalChanged


void timeoutChanged ()

This signal is emitted when the timeout of the input sequence is changed.

相应处理程序是 onTimeoutChanged


版权所有  © 2014-2023 乐数软件    

工业和信息化部: 粤ICP备14079481号-1