HandwritingInputPanel QML Type
为虚拟键盘用户界面提供手写面板插件。更多
Import Statement: | import QtQuick.VirtualKeyboard |
Since: | QtQuick.VirtualKeyboard 2.0 |
Inherits: |
属性
- active : bool
- available : bool
- inputPanel : var
详细说明
手写输入面板(HandwritingInputPanel)是InputPanel 的附加组件,可实现应用程序的全屏手写输入。
HandwritingInputPanel 设计为与InputPanel 一起全屏锚定。其工作原理是,当手写面板 "可用 "时,InputPanel 是不可见的。该功能是内置的,只需引用InputPanel 实例即可。
通过将available 属性设置为true
,手写板就进入了运行状态。当手写板处于运行状态时,键盘在设置输入焦点时保持隐藏。当available
为true
时,可通过将active 属性设置为true
来激活手写输入。
为手写模式和键盘可见度提供控制的用户界面是特定于应用程序的。建议的一种实现方式是在手写面板上使用一个浮动按钮,单击该按钮可切换手写模式(更改active 属性),双击可切换键盘的可见性(更改available 属性)。
HandwritingInputPanel 还提供了一个候选词弹出窗口,允许用户从手写输入法生成的建议列表中选择其他候选词。
属性文档
active : bool |
该属性控制手写输入法的激活状态。
将该属性设置为true
会激活手写输入法。当手写输入法处于激活状态时,所有触控输入都会被手写输入面板捕获并重定向到输入引擎进行处理。
available : bool |
该属性控制手写输入法的可用状态。
将该属性设置为true
时,手写输入法将准备就绪,并抑制键盘的显示。
inputPanel : var |
输入面板实例引用。
此属性必须设置为现有输入面板实例。
© 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.