TraceInputKey QML Type
用于收集触摸输入数据的专用键。更多...
| Import Statement: | import QtQuick.VirtualKeyboard.Components |
| Since: | QtQuick.VirtualKeyboard 2.0 |
| Inherits: |
属性
- boundingBox : alias
- canvasType : alias
- horizontalRulers : alias
- patternRecognitionMode : alias
- verticalRulers : alias
- weight : real
详细说明
此类可放置在键盘布局中。它负责收集并呈现来自按键区域的触摸输入数据(轨迹)。
属性文档
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
设置键的权重值,该值决定键的相对大小。
使用此属性可更改布局中的键大小。
默认值从布局层次结构中该键的父元素继承而来。
© 2026 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.