Auf dieser Seite

QOpenGLContextGroup Class

Die Klasse „QOpenGLContextGroup“ stellt eine Gruppe von Kontexten dar, die sich OpenGL-Ressourcen teilen. Mehr...

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

Öffentliche Funktionen

QList<QOpenGLContext *> shares() const

Statische öffentliche Mitglieder

QOpenGLContextGroup *currentContextGroup()

Ausführliche Beschreibung

QOpenGLContextGroup wird automatisch von Instanzen von „ QOpenGLContext “ erstellt und verwaltet. Sein Zweck besteht darin, alle Kontexte zu identifizieren, die sich Ressourcen teilen.

Siehe auch ` QOpenGLContext::shareGroup()`.

Dokumentation zu den Mitgliedsfunktionen

[static] QOpenGLContextGroup *QOpenGLContextGroup::currentContextGroup()

Gibt die dem aktuellen Kontext entsprechende „ QOpenGLContextGroup “ zurück.

Siehe auch ` QOpenGLContext::currentContext()`.

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

Gibt alle „ QOpenGLContext “-Objekte in dieser Freigabegruppe zurück.

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