Provides access to an input context. More...
Header: | #include <QVirtualKeyboardInputContext> |
qmake: | QT += virtualkeyboard |
Instantiated By: | InputContext |
Inherits: | QObject |
|
|
int | anchorPosition() const |
bool | anchorRectIntersectsClipRect() const |
QRectF | anchorRectangle() const |
void | clear() |
void | commit() |
void | commit(const QString &text, int replaceFrom = 0, int replaceLength = 0) |
int | cursorPosition() const |
bool | cursorRectIntersectsClipRect() const |
QRectF | cursorRectangle() const |
QVirtualKeyboardInputEngine * | inputEngine() const |
Qt::InputMethodHints | inputMethodHints() const |
bool | isAnimating() const |
bool | isCapsLockActive() const |
bool | isSelectionControlVisible() const |
bool | isShiftActive() const |
bool | isUppercase() const |
QString | locale() const |
QString | preeditText() const |
QString | selectedText() const |
void | sendKeyClick(int key, const QString &text, int modifiers = 0) |
void | setAnimating(bool isAnimating) |
void | setPreeditText(const QString &text, QList<QInputMethodEvent::Attribute> attributes = QList<QInputMethodEvent::Attribute>(), int replaceFrom = 0, int replaceLength = 0) |
QString | surroundingText() const |
void | anchorPositionChanged() |
void | anchorRectIntersectsClipRectChanged() |
void | anchorRectangleChanged() |
void | animatingChanged() |
void | capsLockActiveChanged() |
void | cursorPositionChanged() |
void | cursorRectIntersectsClipRectChanged() |
void | cursorRectangleChanged() |
void | inputMethodHintsChanged() |
void | localeChanged() |
void | preeditTextChanged() |
void | selectedTextChanged() |
void | selectionControlVisibleChanged() |
void | shiftActiveChanged() |
void | surroundingTextChanged() |
void | uppercaseChanged() |
This property holds the anchor position.
This property is changed when the anchor position changes.
Access functions:
int | anchorPosition() const |
Notifier signal:
void | anchorPositionChanged() |
Holds true
if the bounding rectangle of the selection anchor intersects the exposed input item rectangle.
Access functions:
bool | anchorRectIntersectsClipRect() const |
Notifier signal:
void | anchorRectIntersectsClipRectChanged() |
See also Qt::ImAnchorRectangle and Qt::ImInputItemClipRectangle.
This property holds the anchor rectangle.
This property is changed when the anchor rectangle changes.
Access functions:
QRectF | anchorRectangle() const |
Notifier signal:
void | anchorRectangleChanged() |
This property holds the animating status.
Use this property to set the animating status, for example during UI transitioning states.
Access functions:
bool | isAnimating() const |
void | setAnimating(bool isAnimating) |
Notifier signal:
void | animatingChanged() |
This property holds the caps lock status.
This property is changed when the caps lock status changes.
Access functions:
bool | isCapsLockActive() const |
Notifier signal:
void | capsLockActiveChanged() |
This property holds the cursor position.
This property is changed when the cursor position changes.
Access functions:
int | cursorPosition() const |
Notifier signal:
void | cursorPositionChanged() |
Holds true
if the bounding rectangle of the input cursor intersects the exposed input item rectangle.
Access functions:
bool | cursorRectIntersectsClipRect() const |
Notifier signal:
void | cursorRectIntersectsClipRectChanged() |
See also Qt::ImCursorRectangle and Qt::ImInputItemClipRectangle.
This property holds the cursor rectangle.
This property is changed when the cursor rectangle changes.
Access functions:
QRectF | cursorRectangle() const |
Notifier signal:
void | cursorRectangleChanged() |
This property holds the input engine.
This property stores the input engine.
Access functions:
QVirtualKeyboardInputEngine * | inputEngine() const |
This property holds the input method hints.
This property is changed when the input method hints changes.
Access functions:
Qt::InputMethodHints | inputMethodHints() const |
Notifier signal:
void | inputMethodHintsChanged() |
This property holds the locale.
This property is changed when the input locale changes.
Access functions:
QString | locale() const |
Notifier signal:
void | localeChanged() |
This property holds the pre-edit text.
This property sets the pre-edit text.
Access functions:
QString | preeditText() const |
void | setPreeditText(const QString &text, QList<QInputMethodEvent::Attribute> attributes = QList<QInputMethodEvent::Attribute>(), int replaceFrom = 0, int replaceLength = 0) |
Notifier signal:
void | preeditTextChanged() |
This property holds the selected text.
This property is changed when the selected text changes.
Access functions:
QString | selectedText() const |
Notifier signal:
void | selectedTextChanged() |
Holds true
if the selection control is currently visible.
Access functions:
bool | isSelectionControlVisible() const |
Notifier signal:
void | selectionControlVisibleChanged() |
This property holds the shift status.
This property is changed when the shift status changes.
Access functions:
bool | isShiftActive() const |
Notifier signal:
void | shiftActiveChanged() |
This property holds the surrounding text around cursor.
This property is changed when the surrounding text around the cursor changes.
Access functions:
QString | surroundingText() const |
Notifier signal:
void | surroundingTextChanged() |
This property holds the uppercase status.
This property is true
when either shiftActive or capsLockActive is true
.
Access functions:
bool | isUppercase() const |
Notifier signal:
void | uppercaseChanged() |
Clears the pre-edit text.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Commits the current pre-edit text.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
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.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Sends a key click event with the given key, text and modifiers to the input item that currently has focus.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qvirtualkeyboardinputcontext.html