InputContext QML Type▲
-
Import Statement: import QtQuick.VirtualKeyboard
-
Instantiates:: QVirtualKeyboardInputContext
-
Group: InputContext is part of qtvirtualkeyboard-internal-qml
Detailed Description▲
The InputContext can be accessed as singleton instance.
Property Documentation▲
[read-only, since QtQuick.VirtualKeyboard 2.2] anchorPosition : int▲
This property is changed when the anchor position changes.
This property was introduced in QtQuick.VirtualKeyboard 2.2.
[read-only] anchorRectIntersectsClipRect : bool▲
Holds true if the bounding rectangle of the selection anchor intersects the exposed input item rectangle.
See Also▲
[read-only, since QtQuick.VirtualKeyboard 2.1] anchorRectangle : rect▲
This property is changed when the anchor rectangle changes.
This property was introduced in QtQuick.VirtualKeyboard 2.1.
animating : bool▲
Use this property to set the animating status, for example during UI transitioning states.
[read-only, since QtQuick.VirtualKeyboard 2.4] capsLockActive : bool▲
This property is changed when the caps lock status changes.
This property was introduced in QtQuick.VirtualKeyboard 2.4.
[read-only] cursorPosition : int▲
This property is changed when the cursor position changes.
[read-only] cursorRectIntersectsClipRect : bool▲
Holds true if the bounding rectangle of the input cursor intersects the exposed input item rectangle.
See Also▲
[read-only] cursorRectangle : rect▲
This property is changed when the cursor rectangle changes.
[read-only] inputEngine : InputEngine▲
This property stores the input engine.
[read-only] inputMethodHints : int▲
This property is changed when the input method hints changes.
[read-only, since QtQuick.VirtualKeyboard 6.1] keyboardObserver : KeyboardObserver▲
Holds the keyboard observer object, which can be used to receive notifications of keyboard change events.
This property was introduced in QtQuick.VirtualKeyboard 6.1.
[read-only] locale : string▲
This property is changed when the input locale changes.
preeditText : string▲
This property sets the pre-edit text.
[read-only] selectedText : string▲
This property is changed when the selected text changes.
[read-only] selectionControlVisible : bool▲
Holds true if the selection control is currently visible.
[read-only, since QtQuick.VirtualKeyboard 2.4] shiftActive : bool▲
This property is changed when the shift status changes.
This property was introduced in QtQuick.VirtualKeyboard 2.4.
[read-only] surroundingText : string▲
This property is changed when the surrounding text around the cursor changes.
[read-only, since QtQuick.VirtualKeyboard 2.2] uppercase : bool▲
This property is true when either shiftActive or capsLockActive is true.
This property was introduced in QtQuick.VirtualKeyboard 2.2.
Method Documentation▲
void clear()▲
Clears the pre-edit text.
void commit()▲
Commits the current pre-edit text.
void commit(string text, int replaceFrom = 0, int replaceLength = 0)▲
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.
void sendKeyClick(int key, string text, int modifiers = 0)▲
Sends a key click event with the given key, text and modifiers to the input item that currently has focus.
Obsolete Members for InputContext▲
The following members of QML type InputContext are deprecated. We strongly advise against using them in new code.
Obsolete Property Documentation▲
[read-only] capsLock : bool▲
This property is deprecated. We strongly advise against using it in new code.
Use capsLockActive instead.
This property is changed when the caps lock status changes.
[read-only] inputItem : QtObject▲
This property is deprecated. We strongly advise against using it in new code.
This property is changed when the focused input item changes.
[read-only] shift : bool▲
This property is deprecated. We strongly advise against using it in new code.
Use shiftActive instead.
This property is changed when the shift status changes.