HandwritingInputPanel QML 类型

Provides a handwriting panel add-on for the virtual keyboard UI. 更多...

import 语句: import QtQuick.VirtualKeyboard 2.15
Since: QtQuick.VirtualKeyboard 2.0
继承:

Item

特性

详细描述

The HandwritingInputPanel is an add-on component for the InputPanel , which enables full-screen handwriting input for the application.

HandwritingInputPanel is designed to be anchored full screen alongside the InputPanel . The operating principle is that when the handwriting panel is "available", the InputPanel is invisible. This functionality is built-in, and requires no more than a reference to the InputPanel 实例。

The panel is set into operation by setting the available 特性到 true . When the panel is in operation, the keyboard remains hidden when the input focus is set. When available is true , handwriting input is activated by setting the active 特性到 true .

The user interface, which provides controls for handwriting mode and the visibility of the keyboard, is application-specific. One suggested implementation is to use a floating button on the handwriting panel, where single click toggles the handwriting mode (changes the active property), and double-click toggles the visibility of the keyboard (changes the available 特性)。

HandwritingInputPanel also provides a word candidate popup which allows the user to select an alternative word candidate from the list of suggestions generated by the handwriting input method.

特性文档编制

active : bool

This property controls the active status of the handwriting input method.

Setting the property to true activates the handwriting input method. When the handwriting input method is active, all touch input is captured by the handwriting input panel and redirected to input engine for processing.

available : bool

This property controls the availability status of the handwriting input method.

Setting the property to true prepares the handwriting input method and inhibits the display of keyboard.

inputPanel : var

A reference to the input panel instance.

This property must be set to the existing input panel instance.