TraceInputArea QML Type

用于收集触摸输入数据的专用MultiPointTouchArea更多

Import Statement: import QtQuick.VirtualKeyboard.Components
Since: QtQuick.VirtualKeyboard 2.0
Inherits:

MultiPointTouchArea

属性

详细说明

该类型处理触摸屏与输入引擎之间的跟踪交互。

跟踪使用当前KeyboardStyletraceCanvasDelegate 属性的委托进行渲染。

属性文档

boundingBox : rect [read-only]

跟踪输入的边界框。

此属性为只读属性,会根据项目大小和边距自动更新。


canvasType : string

跟踪输入区域的画布类型。

该属性可用于区分不同类型的画布。例如,在全屏手写模式下,此属性设置为"fullscreen" ,而在键盘手写模式下,此属性设置为"keyboard"


horizontalRulers : var

输入区域中的水平标尺列表。

标尺定义为距离boundingBox 顶部边缘的像素数。

下面的示例演示了如何定义标尺:

horizontalRulers: [boundingBox.height / 3, boundingBox.height / 3 * 2]
verticalRulers: [boundingBox.width / 3, boundingBox.width / 3 * 2]

patternRecognitionMode : int

该输入区域的模式识别模式。

默认值为InputEngine.PatternRecognitionMode.None


verticalRulers : var

输入区域中的垂直标尺列表。

标尺定义为距boundingBox 左边缘的像素数。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.