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

(ff3cf30eed313fc9274c90946a45c1881754f7e7)

#include <qpa/qplatformwindow.h>
#include <qpa/qwindowsysteminterface.h>
import <UIKit/UIKit.h>
Include dependency graph for qioswindow.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QIOSWindow

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 456 of file qioswindow.mm.

◆ 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 484 of file qioswindow.mm.