Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickinputmethod.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#include <QtGui/qguiapplication.h>
7
9
22{
26 connect(inputMethod, &QInputMethod::animatingChanged, this,
38}
39
41{
43}
45{
47}
49{
51}
53{
55}
57{
59}
60void QQuickInputMethod::update(Qt::InputMethodQueries queries)
61{
63}
64
66{
68}
70{
72}
74{
76}
78{
80}
81
83{
85}
87{
89}
90
92{
94}
96{
98}
99
101{
103}
104
106{
108}
110{
112}
113
115{
117}
119{
121}
122
124
125#include "moc_qquickinputmethod_p.cpp"
static QInputMethod * inputMethod()
returns the input method.
The QInputMethod class provides access to the active text input method.
QRectF cursorRectangle
Input item's cursor rectangle in window coordinates.
Action
Indicates the kind of action performed by the user.
void setInputItemTransform(const QTransform &transform)
Sets the transformation from input item coordinates to window coordinates to be transform.
Qt::LayoutDirection inputDirection
Current input direction.
void show()
Requests virtual keyboard to open.
void animatingChanged()
void update(Qt::InputMethodQueries queries)
Called by the input item to inform the platform input methods when there has been state changes in ed...
void hide()
Requests virtual keyboard to close.
void anchorRectangleChanged()
QRectF keyboardRectangle
Virtual keyboard's geometry in window coordinates.
void commit()
Commits the word user is currently composing to the editor.
void inputDirectionChanged(Qt::LayoutDirection newDirection)
QRectF inputItemRectangle() const
void inputItemClipRectangleChanged()
QTransform inputItemTransform() const
Returns the transformation from input item coordinates to the window coordinates.
void visibleChanged()
void keyboardRectangleChanged()
QLocale locale
Current input locale.
void localeChanged()
void invokeAction(Action a, int cursorPosition)
Called by the input item when the word currently being composed is tapped by the user,...
void cursorRectangleChanged()
bool isVisible() const
void reset()
Resets the input method state.
QRectF inputItemClipRectangle
Input item's clipped rectangle in window coordinates.
void setVisible(bool visible)
Controls the keyboard visibility.
void setInputItemRectangle(const QRectF &rect)
bool isAnimating() const
\inmodule QtCore
Definition qobject.h:90
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2823
void invokeAction(QInputMethod::Action a, int cursorPosition)
void inputItemClipRectangleChanged()
void inputDirectionChanged(Qt::LayoutDirection newDirection)
void setVisible(bool visible)
void keyboardRectangleChanged()
QTransform inputItemTransform() const
void setInputItemTransform(const QTransform &transform)
void setInputItemRectangle(const QRectF &rect)
void cursorRectangleChanged()
void update(Qt::InputMethodQueries queries)
QQuickInputMethod(QObject *parent=nullptr)
\qmltype InputMethod \inqmlmodule QtQuick
QRectF inputItemRectangle() const
QML_SINGLETONQRectF cursorRectangle
void anchorRectangleChanged()
Qt::LayoutDirection inputDirection
\inmodule QtCore\reentrant
Definition qrect.h:483
The QTransform class specifies 2D transformations of a coordinate system.
Definition qtransform.h:20
rect
[4]
Combined button and popup list for selecting options.
LayoutDirection
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint GLenum GLenum transform
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent