QNativeInterface::QCocoaGLContext Struct
Interface native vers un NSOpenGLContext sous macOS. En savoir plus...
| En-tête : | #include <QOpenGLContext> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake : | QT += gui |
| Depuis : | Qt 6.0 |
- Liste de tous les membres, y compris les membres hérités
- QCocoaGLContext fait partie des interfaces natives.
Fonctions publiques
| QCocoaGLContext() | |
| QCocoaGLContext(const QNativeInterface::QCocoaGLContext &) | |
| QCocoaGLContext(QNativeInterface::QCocoaGLContext &&) | |
| virtual NSOpenGLContext * | nativeContext() const = 0 |
| QNativeInterface::QCocoaGLContext & | operator=(QNativeInterface::QCocoaGLContext &&) |
| QNativeInterface::QCocoaGLContext & | operator=(const QNativeInterface::QCocoaGLContext &) |
Membres publics statiques
| QOpenGLContext * | fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr) |
Description détaillée
Accessible via la méthode ` QOpenGLContext::nativeInterface()`.
Documentation des fonctions membres
[constexpr noexcept default] QCocoaGLContext::QCocoaGLContext()
Construit par défaut une instance de ` QCocoaGLContext`.
[delete] QCocoaGLContext::QCocoaGLContext(const QNativeInterface::QCocoaGLContext &)
Copie et construit une instance de ` QCocoaGLContext`. Cette fonction est supprimée.
[delete] QCocoaGLContext::QCocoaGLContext(QNativeInterface::QCocoaGLContext &&)
Crée par « move » une instance de ` QCocoaGLContext`. Cette fonction est supprimée.
[static] QOpenGLContext *QCocoaGLContext::fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)
Adopte un objet `NSOpenGLContext`.
L'context de l'objet NSOpenGLContext adopté est conservée. La propriété de l'QOpenGLContext shareContext créé est transférée à l'appelant.
[pure virtual] NSOpenGLContext *QCocoaGLContext::nativeContext() const
Renvoie le NSOpenGLContext sous-jacent.
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(QNativeInterface::QCocoaGLContext &&)
La commande « Move-assigns » attribue « other » à cette instance de « QCocoaGLContext ». Cette fonction est supprimée.
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(const QNativeInterface::QCocoaGLContext &)
Copie et attribue « other » à cette instance « QCocoaGLContext ». Cette fonction est supprimée.
© 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.