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#ifndef QUIVIEW_H
6#define QUIVIEW_H
7
8#import <UIKit/UIKit.h>
9
10#include <qhash.h>
11#include <qstring.h>
12
13#include <qpa/qwindowsysteminterface.h>
14
16
17class QIOSWindow;
18
19QT_END_NAMESPACE
20
21@class QIOSViewController;
22
23@interface QUIView : UIView
24- (instancetype)initWithQIOSWindow:(QT_PREPEND_NAMESPACE(QIOSWindow) *)window;
25- (void)sendUpdatedExposeEvent;
26- (BOOL)isActiveWindow;
27- (bool)handlePresses:(NSSet<UIPress *> *)presses eventType:(QEvent::Type)type;
28@property (nonatomic, assign) QT_PREPEND_NAMESPACE(QIOSWindow) *platformWindow;
29@end
30
31@interface QUIView (Accessibility)
32- (void)clearAccessibleCache;
33@end
34
35@interface UIView (QtHelpers)
36- (QWindow *)qwindow;
37- (UIViewController *)viewController;
38- (QIOSViewController*)qtViewController;
39@end
40
41#if QT_CONFIG(metal)
42@interface QUIMetalView : QUIView
43@end
44#endif
45
46#endif // QUIVIEW_H
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()
Combined button and popup list for selecting options.
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:1683
connect(manager, &QNetworkAccessManager::finished, this, &MyClass::replyFinished)
Qt::InputMethodQueries update(Qt::InputMethodQueries properties)
QInputMethodQueryEvent currentState
ImeState()=default
QObject * focusObject