TraceInputKey QML Type

用于收集触摸输入数据的专用按键。更多

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

Item

属性

详细说明

该类型可放置在键盘布局中。它收集并显示按键区域的触摸输入数据(轨迹)。

属性文档

boundingBox : alias [read-only]

轨迹输入的边界框。

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


canvasType : alias

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

该属性可用于区分不同类型的画布。默认值为"keyboard"


horizontalRulers : alias

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

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

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

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

patternRecognitionMode : alias

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

默认值为InputEngine.PatternRecognitionMode.None


verticalRulers : alias

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

标尺定义为距离边界框左边缘的像素数。


weight : real

设置键权重值,该值决定键的相对大小。

使用此属性可更改布局中键的大小。

默认值从布局层次中键的父元素继承。


© 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.