Sur cette page

QtWebEngineQuick Namespace

Fonctions d'aide pour le module Qt WebEngine (Qt Quick). Plus d'informations...

En-tête : #include <QtWebEngineQuick>
CMake : find_package(Qt6 REQUIRED COMPONENTS WebEngineQuick)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineQuick)
qmake : QT += webenginequick

Fonctions

void initialize()

Description détaillée

L'espace de noms QtWebEngineQuick fait partie du module Qt WebEngine.

Documentation des fonctions

void QtWebEngineQuick::initialize()

Met en place un contexte OpenGL qui peut être partagé entre plusieurs threads. Cela doit être fait avant que QGuiApplication ne soit créé et avant que le QPlatformOpenGLContext de la fenêtre ne soit créé.

Cela a le même effet que de définir l'attribut Qt::AA_ShareOpenGLContexts avec QCoreApplication::setAttribute avant de construire QGuiApplication.

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