Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
quiview.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant reason:default
4
5#import <UIKit/UIKit.h>
6
7#include <qhash.h>
8#include <qstring.h>
9
10#include <qpa/qwindowsysteminterface.h>
11
13
14class QIOSWindow;
15
16QT_END_NAMESPACE
17
18@class QIOSViewController;
19
20@interface QUIView : UIView
21- (instancetype)initWithQIOSWindow:(QT_PREPEND_NAMESPACE(QIOSWindow) *)window;
22- (void)sendUpdatedExposeEvent;
23- (BOOL)isActiveWindow;
24- (bool)handlePresses:(NSSet<UIPress *> *)presses eventType:(QEvent::Type)type;
25@property (nonatomic, assign) QT_PREPEND_NAMESPACE(QIOSWindow) *platformWindow;
26@end
27
28@interface QUIView (Accessibility)
29- (void)clearAccessibleCache;
30@end
31
32@interface UIView (QtHelpers)
33- (QWindow *)qwindow;
34- (UIViewController *)viewController;
35- (QIOSViewController*)qtViewController;
36@end
37
38#if QT_CONFIG(metal)
39@interface QUIMetalView : QUIView
40@end
41#endif
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
void clearCurrentFocusObject()
QRectF keyboardRect() const override
This function can be reimplemented to return virtual keyboard rectangle in currently active window co...
const KeyboardState & keyboardState()
void updateKeyboardState(NSNotification *notification=nullptr)
bool isValid() const override
Returns input context validity.
void scroll(int y)
static QIOSInputContext * instance()
QLocale locale() const override
void reset() override
Method to be called when input method needs to be reset.
const ImeState & imeState()
void commit() override
bool isAnimating() const override
This function can be reimplemented to return true whenever input method is animating shown or hidden.
void showInputPanel() override
Request to show input panel.
void focusWindowChanged(QWindow *focusWindow)
void hideInputPanel() override
Request to hide input panel.
bool isInputPanelVisible() const override
Returns input panel visibility status.
bool inputMethodAccepted() const
void update(Qt::InputMethodQueries) override
Notification on editor updates.
static QIOSIntegration * instance()
Q_FORWARD_DECLARE_OBJC_CLASS(UIViewController)
bool isQtApplication()
Definition qiosglobal.mm:21
#define qImDebug
Definition qiosglobal.h:21
const char kImePlatformDataReturnKeyType[]
const char kImePlatformDataInputAccessoryView[]
const char kImePlatformDataHideShortcutsBar[]
#define qPrintable(string)
Definition qstring.h:1685
connect(manager, &QNetworkAccessManager::finished, this, &MyClass::replyFinished)
Qt::InputMethodQueries update(Qt::InputMethodQueries properties)
QInputMethodQueryEvent currentState
ImeState()=default
QObject * focusObject