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
qioswindow.mm File Reference

(6c36e21bec1197e933ee1fbe14bd18936544d32a)

#include "qioswindow.h"
#include "qiosapplicationdelegate.h"
#include "qiosglobal.h"
#include "qiosintegration.h"
#include "qiosscreen.h"
#include "qiosviewcontroller.h"
#include "quiview.h"
#include "qiosinputcontext.h"
#include <QtCore/private/qcore_mac_p.h>
#include <QtGui/private/qwindow_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <qpa/qplatformintegration.h>
#include <QtDebug>
#include "moc_qioswindow.cpp"
+ Include dependency graph for qioswindow.mm:

Go to the source code of this file.

Enumerations

enum  { defaultWindowWidth = 160 , defaultWindowHeight = 160 }
 

Functions

QDebug operator<< (QDebug debug, const QIOSWindow *window)
 
QUIViewquiview_cast (UIView *view)
 Returns the view cast to a QUIview if possible.
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
defaultWindowWidth 
defaultWindowHeight 

Definition at line 32 of file qioswindow.mm.

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug debug,
const QIOSWindow * window )

Definition at line 438 of file qioswindow.mm.

References debug, and window().

+ Here is the call graph for this function:

◆ quiview_cast()

QUIView * quiview_cast ( UIView * view)

Returns the view cast to a QUIview if possible.

If the view is not a QUIview, nil is returned, which is safe to send messages to, effectively making [quiview_cast(view) message] a no-op.

For extra verbosity and clearer code, please consider checking that the platform window is not a foreign window before using this cast, via QPlatformWindow::isForeignWindow().

Do not use this method solely to check for foreign windows, as that will make the code harder to read for people not working primarily on iOS, who do not know the difference between the UIView and QUIView cases.

Definition at line 466 of file qioswindow.mm.

References view.

Referenced by QIOSWindow::~QIOSWindow(), QIOSWindow::clearAccessibleCache(), QIOSWindow::setParent(), and QIOSWindow::setVisible().

+ Here is the caller graph for this function: