Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
39
49{
50 QGuiApplication::inputMethod()->invokeAction(a, cursorPosition);
51}
60void QQuickInputMethod::update(Qt::InputMethodQueries queries)
61{
62 QGuiApplication::inputMethod()->update(queries);
63}
64
66{
67 return QGuiApplication::inputMethod()->cursorRectangle();
68}
70{
71 return QGuiApplication::inputMethod()->cursorRectangle();
72}
78{
79 return QGuiApplication::inputMethod()->inputItemClipRectangle();
80}
81
83{
84 return QGuiApplication::inputMethod()->inputItemRectangle();
85}
90
92{
93 return QGuiApplication::inputMethod()->inputItemTransform();
94}
99
101{
102 return QGuiApplication::inputMethod()->isAnimating();
103}
104
106{
107 return QGuiApplication::inputMethod()->isVisible();
108}
110{
112}
113
115{
116 return QGuiApplication::inputMethod()->keyboardRectangle();
117}
119{
120 return QGuiApplication::inputMethod()->locale();
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.
Action
Indicates the kind of action performed by the user.
void animatingChanged()
void anchorRectangleChanged()
void inputDirectionChanged(Qt::LayoutDirection newDirection)
void inputItemClipRectangleChanged()
void visibleChanged()
void keyboardRectangleChanged()
void localeChanged()
void cursorRectangleChanged()
\inmodule QtCore
Definition qobject.h:103
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2960
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:484
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