QNativeInterface::QCocoaGLContext Struct
Interfaccia nativa per un oggetto NSOpenGLContext su macOS. Maggiori informazioni...
| Intestazione: | #include <QOpenGLContext> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| A partire da: | Qt 6.0 |
- Elenco di tutti i membri, compresi quelli ereditati
- QCocoaGLContext fa parte delle interfacce native.
Funzioni pubbliche
| QCocoaGLContext() | |
| QCocoaGLContext(const QNativeInterface::QCocoaGLContext &) | |
| QCocoaGLContext(QNativeInterface::QCocoaGLContext &&) | |
| virtual NSOpenGLContext * | nativeContext() const = 0 |
| QNativeInterface::QCocoaGLContext & | operator=(QNativeInterface::QCocoaGLContext &&) |
| QNativeInterface::QCocoaGLContext & | operator=(const QNativeInterface::QCocoaGLContext &) |
Membri pubblici statici
| QOpenGLContext * | fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr) |
Descrizione dettagliata
Accessibile tramite ` QOpenGLContext::nativeInterface()`.
Documentazione delle funzioni membro
[constexpr noexcept default] QCocoaGLContext::QCocoaGLContext()
Crea un'istanza di ` QCocoaGLContext` con i valori predefiniti.
[delete] QCocoaGLContext::QCocoaGLContext(const QNativeInterface::QCocoaGLContext &)
Crea un'istanza di ` QCocoaGLContext`. Questa funzione è stata eliminata.
[delete] QCocoaGLContext::QCocoaGLContext(QNativeInterface::QCocoaGLContext &&)
Crea un'istanza di ` QCocoaGLContext`. Questa funzione è stata eliminata.
[static] QOpenGLContext *QCocoaGLContext::fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)
Adotta un oggetto NSOpenGLContext.
L'oggetto NSOpenGLContext context adottato viene mantenuto. La proprietà dell'oggetto QOpenGLContext shareContext creato viene trasferita al chiamante.
[pure virtual] NSOpenGLContext *QCocoaGLContext::nativeContext() const
Restituisce l'oggetto NSOpenGLContext sottostante.
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(QNativeInterface::QCocoaGLContext &&)
Assegna " other " a questa istanza di " QCocoaGLContext ". Questa funzione viene eliminata.
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(const QNativeInterface::QCocoaGLContext &)
Copia e assegna other a questa istanza di QCocoaGLContext. Questa funzione viene eliminata.
© 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.