Auf dieser Seite

QNativeInterface::QEGLContext Struct

Native Schnittstelle zu einem EGL-Kontext. 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

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 &)

Statische öffentliche Mitglieder

QOpenGLContext *fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)

Ausführliche Beschreibung

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

Dokumentation zur Mitgliedsfunktion

[constexpr noexcept default] QEGLContext::QEGLContext()

Erstellt standardmäßig eine Instanz von „ QEGLContext “.

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

Erstellt eine Instanz von ` QEGLContext` durch Kopieren. Diese Funktion wurde gelöscht.

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

Erstellt eine Instanz von „ QEGLContext “. Diese Funktion wurde gelöscht.

[pure virtual, since 6.3] EGLConfig QEGLContext::config() const

Gibt die EGLConfig zurück, die dem zugrunde liegenden EGLContext zugeordnet ist.

Diese Funktion wurde in Qt 6.3 eingeführt.

[pure virtual, since 6.3] EGLDisplay QEGLContext::display() const

Gibt das EGLDisplay zurück, das dem zugrunde liegenden EGLContext zugeordnet ist.

Diese Funktion wurde in Qt 6.3 eingeführt.

[static] QOpenGLContext *QEGLContext::fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)

Übernimmt einen EGLContext context.

Derselbe „ EGLDisplay “, der an „ eglCreateContext “ übergeben wurde, muss als Argument „ display “ übergeben werden.

Die Eigentumsrechte an der erstellten QOpenGLContext „ shareContext “ werden auf den Aufrufer übertragen.

[pure virtual, since 6.5] void QEGLContext::invalidateContext()

Markiert den Kontext als ungültig

Wird dieser Kontext von der Qt Quick -Szenengrafik verwendet, löst dies aus, dass die Szenengrafik diesen Kontext löscht und einen neuen erstellt.

Ähnlich wie bei `QPlatformWindow::invalidateSurface()` ist davon auszugehen, dass diese Funktion nur auf bestimmten Plattformen, wie beispielsweise eglfs, eine Wirkung zeigt.

Diese Funktion wurde in Qt 6.5 eingeführt.

Siehe auch QOpenGLContext::isValid().

[pure virtual] EGLContext QEGLContext::nativeContext() const

Gibt den zugrunde liegenden EGLContext zurück.

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

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

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

Weist dieser „ QEGLContext “-Instanz „ other “ per Kopieren 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.