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
qiosglobal.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
4#ifndef QIOSGLOBAL_H
5#define QIOSGLOBAL_H
6
7#import <UIKit/UIKit.h>
8#include <QtCore/QtCore>
9
11
13
15Q_DECLARE_LOGGING_CATEGORY(lcQpaInputMethods);
18
19#if !defined(QT_NO_DEBUG)
20#define qImDebug \
21 for (bool qt_category_enabled = lcQpaInputMethods().isDebugEnabled(); qt_category_enabled; qt_category_enabled = false) \
22 QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC, lcQpaInputMethods().categoryName()).debug
23#else
24#define qImDebug QT_NO_QDEBUG_MACRO
25#endif
26
27class QPlatformScreen;
28
29bool isQtApplication();
31
32#ifndef Q_OS_TVOS
33Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation);
34UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation);
35#endif
36
37int infoPlistValue(NSString* key, int defaultValue);
38
39class QWindow;
40class QScreen;
41UIWindow *presentationWindow(QWindow *);
42UIView *rootViewForScreen(QScreen *);
43
45
46@interface UIResponder (QtFirstResponder)
48@end
49
51
52class FirstResponderCandidate : public QScopedValueRollback<UIResponder *>
53{
54public:
55 FirstResponderCandidate(UIResponder *);
56 static UIResponder *currentCandidate() { return s_firstResponderCandidate; }
57
58private:
59 static UIResponder *s_firstResponderCandidate;
60};
61
63
64#endif // QIOSGLOBAL_H
static UIResponder * currentCandidate()
Definition qiosglobal.h:56
The QPlatformScreen class provides an abstraction for visual displays.
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
ScreenOrientation
Definition qnamespace.h:271
UIWindow * presentationWindow(QWindow *)
Definition qiosglobal.mm:96
int infoPlistValue(NSString *key, int defaultValue)
Definition qiosglobal.mm:89
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation)
Definition qiosglobal.mm:41
bool isQtApplication()
Definition qiosglobal.mm:20
UIView * rootViewForScreen(QScreen *)
bool isRunningOnVisionOS()
Definition qiosglobal.mm:31
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation)
Definition qiosglobal.mm:66
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLuint64 key
GLenum GLuint id
[7]