InputContext QML Type
Provides access to an input context. More...
Import Statement: | import QtQuick.VirtualKeyboard 2.15 |
Instantiates: | QVirtualKeyboardInputContext |
Properties
- anchorPosition : int
- anchorRectIntersectsClipRect : bool
- anchorRectangle : rect
- animating : bool
- capsLockActive : bool
- cursorPosition : int
- cursorRectIntersectsClipRect : bool
- cursorRectangle : rect
- inputEngine : InputEngine
- inputMethodHints : int
- locale : string
- preeditText : string
- selectedText : string
- selectionControlVisible : bool
- shiftActive : bool
- surroundingText : string
- uppercase : bool
Methods
- void clear()
- void commit(string text, int replaceFrom, int replaceLength)
- void commit()
- void sendKeyClick(int key, string text, int modifiers)
Detailed Description
The InputContext can be accessed as singleton instance.
Property Documentation
This property is changed when the anchor position changes.
This property was introduced in QtQuick.VirtualKeyboard 2.2.
Holds true
if the bounding rectangle of the selection anchor intersects the exposed input item rectangle.
See also Qt::ImAnchorRectangle and Qt::ImInputItemClipRectangle.
This property is changed when the anchor rectangle changes.
This property was introduced in QtQuick.VirtualKeyboard 2.1.
Use this property to set the animating status, for example during UI transitioning states.
This property is changed when the caps lock status changes.
This property was introduced in QtQuick.VirtualKeyboard 2.4.
Holds true
if the bounding rectangle of the input cursor intersects the exposed input item rectangle.
See also Qt::ImCursorRectangle and Qt::ImInputItemClipRectangle.
inputEngine : InputEngine |
This property stores the input engine.
Holds true
if the selection control is currently visible.
This property is changed when the shift status changes.
This property was introduced in QtQuick.VirtualKeyboard 2.4.
This property is changed when the surrounding text around the cursor changes.
This property is true
when either shiftActive or capsLockActive is true
.
This property was introduced in QtQuick.VirtualKeyboard 2.2.
Method Documentation
Commits the final 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.
Sends a key click event with the given key, text and modifiers to the input item that currently has focus.