QCocoaNativeContext Struct

A class encapsulating a Cocoa NSOpenGLContext. More...

Header: #include <QCocoaNativeContext>
Since: Qt 5.4

This struct was introduced in Qt 5.4.

Public Functions

QCocoaNativeContext(NSOpenGLContext *ctx)
NSOpenGLContext *context() const

Detailed Description

Note: There is no binary compatibility guarantee for this class, meaning that an application using it is only guaranteed to work with the Qt version it was developed against.

See also QOpenGLContext::setNativeHandle() and QOpenGLContext::nativeHandle().

Member Function Documentation

QCocoaNativeContext::QCocoaNativeContext(NSOpenGLContext *ctx)

Constructs a new instance with the provided ctx handle.


Construct a new instance with no handles.

NSOpenGLContext *QCocoaNativeContext::context() const

Returns the context.