提供对输入上下文的访问。 更多...
import 语句: | import QtQuick.VirtualKeyboard 2.2 |
The InputContext can be accessed as singleton instance.
此特性被改变,当锚点位置改变时。
This QML property was introduced in QtQuick.VirtualKeyboard 2.2.
anchorRectangle : rect |
This property is changed when the anchor rectangle changes.
This QML property was introduced in QtQuick.VirtualKeyboard 2.1.
Use this property to set the animating status, for example during UI transitioning states.
此特性被改变,当大写锁定状态改变时。
此特性被改变,当光标位置改变时。
cursorRectangle : rect |
This property is changed when the cursor rectangle changes.
This property is changed when the input method receives or loses focus.
inputEngine : InputEngine |
This property stores the input engine.
inputItem : QtObject |
This property is changed when the focused input item changes.
This property is changed when the input method hints changes.
keyboardRectangle : rect |
Use this property to set the keyboard rectangle.
Sets the locale for this input context.
This property sets the pre-edit text.
previewRectangle : rect |
Use this property to set the preview rectangle.
Use this property to set the visibility status of the preview.
This property is changed when the selected text changes.
This property is changed when the shift status changes.
shiftHandler : ShiftHandler |
This property stores the shift handler.
This property is changed when the surrounding text around the cursor changes.
此特性是
true
当
shift
or
capsLock
is
true
.
This QML property was introduced in QtQuick.VirtualKeyboard 2.2.
This signal is emitted when the focus editor changes.
清零预编辑文本。
void commit ( string text , int replaceFrom = 0, int replaceLength = 0) |
提交最终 text to the input item and optionally modifies the text relative to the start of the pre-edit text. If replaceFrom is non-zero, the text replaces the contents relative to replaceFrom with a length of replaceLength .
提交当前的预编辑文本。
This method hides the input panel. This method should only be called when the user initiates the hide, e.g. by pressing a dedicated button on the keyboard.
void sendKeyClick ( int key , string text , int modifiers = 0) |
发送键点击事件采用给定 key , text and modifiers 到目前拥有聚焦的输入项。