Auf dieser Seite

QNativeInterface::QCocoaGLContext Struct

Native Schnittstelle zu einem NSOpenGLContext unter macOS. Mehr...

Header: #include <QOpenGLContext>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Seit: Qt 6.0

Öffentliche Funktionen

QCocoaGLContext()
QCocoaGLContext(const QNativeInterface::QCocoaGLContext &)
QCocoaGLContext(QNativeInterface::QCocoaGLContext &&)
virtual NSOpenGLContext *nativeContext() const = 0
QNativeInterface::QCocoaGLContext &operator=(QNativeInterface::QCocoaGLContext &&)
QNativeInterface::QCocoaGLContext &operator=(const QNativeInterface::QCocoaGLContext &)

Statische öffentliche Mitglieder

QOpenGLContext *fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)

Ausführliche Beschreibung

Zugriff über „ QOpenGLContext::nativeInterface()“.

Dokumentation der Mitgliedsfunktionen

[constexpr noexcept default] QCocoaGLContext::QCocoaGLContext()

Erstellt standardmäßig eine Instanz von ` QCocoaGLContext`.

[delete] QCocoaGLContext::QCocoaGLContext(const QNativeInterface::QCocoaGLContext &)

Erstellt eine Instanz von „ QCocoaGLContext “ durch Kopieren. Diese Funktion wurde gelöscht.

[delete] QCocoaGLContext::QCocoaGLContext(QNativeInterface::QCocoaGLContext &&)

Erstellt eine Instanz von ` QCocoaGLContext`. Diese Funktion ist gelöscht.

[static] QOpenGLContext *QCocoaGLContext::fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)

Übernimmt einen NSOpenGLContext.

Der übernommene NSOpenGLContext context wird beibehalten. Die Eigentumsrechte an dem erstellten QOpenGLContext shareContext werden auf den Aufrufer übertragen.

[pure virtual] NSOpenGLContext *QCocoaGLContext::nativeContext() const

Gibt den zugrunde liegenden NSOpenGLContext zurück.

[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(QNativeInterface::QCocoaGLContext &&)

Weist „ other “ dieser „ QCocoaGLContext “-Instanz zu. Diese Funktion wird gelöscht.

[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(const QNativeInterface::QCocoaGLContext &)

other Weist dieser Instanz von „ QCocoaGLContext “ den Wert „ “ zu. Diese Funktion wird gelöscht.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.