InputContext QML Type
Provides access to an input context. More...
Import Statement: | import QtQuick.VirtualKeyboard 2.0 |
Properties
- anchorRectangle : rect
- animating : bool
- capsLock : bool
- cursorPosition : int
- cursorRectangle : rect
- focus : bool
- inputEngine : InputEngine
- inputItem : QtObject
- inputMethodHints : int
- keyboardRectangle : rect
- locale : string
- preeditText : string
- previewRectangle : rect
- previewVisible : bool
- selectedText : string
- shift : bool
- shiftHandler : ShiftHandler
- surroundingText : string
Signals
Methods
- void clear()
- void commit(string text, int replaceFrom, int replaceLength)
- void commit()
- void hideInputPanel()
- void sendKeyClick(int key, string text, int modifiers)
Detailed Description
The InputContext can be accessed as singleton instance.
Property Documentation
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.
inputEngine : InputEngine |
This property stores the input engine.
inputItem : QtObject |
This property is changed when the focused input item changes.
keyboardRectangle : rect |
Use this property to set the keyboard rectangle.
previewRectangle : rect |
Use this property to set the preview rectangle.
shiftHandler : ShiftHandler |
This property stores the shift handler.
This property is changed when the surrounding text around the cursor changes.
Signal Documentation
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.
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.
Sends a key click event with the given key, text and modifiers to the input item that currently has focus.
© 2017 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.