QOpenGLContextGroup Class

Die Klasse QOpenGLContextGroup repräsentiert eine Gruppe von Kontexten, die sich OpenGL-Ressourcen teilen. Mehr...

Kopfzeile: #include <QOpenGLContextGroup>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Vererbungen: QObject

Öffentliche Funktionen

QList<QOpenGLContext *> shares() const

Statische öffentliche Mitglieder

QOpenGLContextGroup *currentContextGroup()

Detaillierte Beschreibung

QOpenGLContextGroup wird automatisch von QOpenGLContext Instanzen erstellt und verwaltet. Ihr Zweck ist es, alle Kontexte zu identifizieren, die sich Ressourcen teilen.

Siehe auch QOpenGLContext::shareGroup().

Dokumentation der Mitgliedsfunktionen

[static] QOpenGLContextGroup *QOpenGLContextGroup::currentContextGroup()

Gibt die QOpenGLContextGroup zurück, die dem aktuellen Kontext entspricht.

Siehe auch QOpenGLContext::currentContext().

QList<QOpenGLContext *> QOpenGLContextGroup::shares() const

Gibt alle QOpenGLContext Objekte in dieser Freigabegruppe zurück.

© 2025 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.