QNativeInterface::QEGLContext Struct
Interfaccia nativa per un contesto EGL. 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
- QEGLContext fa parte delle interfacce native.
Funzioni pubbliche
| QEGLContext() | |
| QEGLContext(const QNativeInterface::QEGLContext &) | |
| QEGLContext(QNativeInterface::QEGLContext &&) | |
(since 6.3) virtual EGLConfig | config() const = 0 |
(since 6.3) virtual EGLDisplay | display() const = 0 |
(since 6.5) virtual void | invalidateContext() = 0 |
| virtual EGLContext | nativeContext() const = 0 |
| QNativeInterface::QEGLContext & | operator=(QNativeInterface::QEGLContext &&) |
| QNativeInterface::QEGLContext & | operator=(const QNativeInterface::QEGLContext &) |
Membri pubblici statici
| QOpenGLContext * | fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr) |
Descrizione dettagliata
Accessibile tramite ` QOpenGLContext::nativeInterface()`.
Documentazione delle funzioni membro
[constexpr noexcept default] QEGLContext::QEGLContext()
Crea un'istanza di ` QEGLContext` con i valori predefiniti.
[delete] QEGLContext::QEGLContext(const QNativeInterface::QEGLContext &)
Crea un'istanza di ` QEGLContext` tramite copia. Questa funzione è stata eliminata.
[delete] QEGLContext::QEGLContext(QNativeInterface::QEGLContext &&)
Crea un'istanza di ` QEGLContext`. Questa funzione è stata eliminata.
[pure virtual, since 6.3] EGLConfig QEGLContext::config() const
Restituisce l'EGLConfig associato all'EGLContext sottostante.
Questa funzione è stata introdotta in Qt 6.3.
[pure virtual, since 6.3] EGLDisplay QEGLContext::display() const
Restituisce l’EGLDisplay associato all’EGLContext sottostante.
Questa funzione è stata introdotta in Qt 6.3.
[static] QOpenGLContext *QEGLContext::fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)
Adotta un EGLContext context.
Lo stesso EGLDisplay passato a eglCreateContext deve essere passato come argomento display.
La proprietà dell'QOpenGLContext creato shareContext viene trasferita al chiamante.
[pure virtual, since 6.5] void QEGLContext::invalidateContext()
Contrassegna il contesto come non valido
Se questo contesto viene utilizzato dal grafo di scena di Qt Quick, ciò farà sì che il grafo di scena distrugga questo contesto e ne crei uno nuovo.
Analogamente a `QPlatformWindow::invalidateSurface()`, questa funzione ha effetto solo su determinate piattaforme, come eglfs.
Questa funzione è stata introdotta in Qt 6.5.
Vedi anche QOpenGLContext::isValid().
[pure virtual] EGLContext QEGLContext::nativeContext() const
Restituisce l'EGLContext sottostante.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(QNativeInterface::QEGLContext &&)
Assegna " other " a questa istanza di " QEGLContext ". Questa funzione viene eliminata.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(const QNativeInterface::QEGLContext &)
Copia e assegna other a questa istanza di QEGLContext. 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.