QtWebEngineQuick Namespace
Hilfsfunktionen für das Modul Qt WebEngine (Qt Quick). Mehr...
Kopfzeile: | #include <QtWebEngineQuick> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineQuick) target_link_libraries(mytarget PRIVATE Qt6::WebEngineQuick) |
qmake: | QT += webenginequick |
Funktionen
void | initialize() |
Detaillierte Beschreibung
Der Namespace QtWebEngineQuick ist Teil des Moduls Qt WebEngine.
Dokumentation der Funktionen
void QtWebEngineQuick::initialize()
Richtet einen OpenGL-Kontext ein, der zwischen Threads geteilt werden kann. Dies muss geschehen, bevor QGuiApplication erstellt wird und bevor der QPlatformOpenGLContext des Fensters erstellt wird.
Dies hat den gleichen Effekt wie das Setzen des Attributs Qt::AA_ShareOpenGLContexts mit QCoreApplication::setAttribute vor der Erstellung von QGuiApplication.
© 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.