Obsolete Members for InputContext
The following members of QML type InputContext are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Properties
Property Documentation
capsLock : bool [read-only, deprecated]
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.
inputItem : QtObject [read-only, deprecated]
This property is deprecated. We strongly advise against using it in new code.
Use Window.activeFocusItem instead. This property was never intended as public API; it was exposed only for the internal use of the virtual keyboard.
This property is changed when the focused input item changes.
Note: If you are tracking the input item in order to react to the keyboard geometry or to the cursor position, prefer the input method properties in Qt.inputMethod, such as keyboardRectangle and cursorRectangle. Those work independently of the virtual keyboard and do not require access to the focused item itself.
shift : bool [read-only, deprecated]
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.
© 2026 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.