QtWebEngine 名稱空間

用於 Qt WebEngine (Qt Quick) 模塊的幫助程序函數 更多...

頭: #include <QtWebEngine>

    函數

    void initialize ()

    詳細描述

    用於 Qt WebEngine (Qt Quick) 模塊的幫助程序函數

    The QtWebEngine 名稱空間屬於 Qt WebEngine 模塊。

    函數文檔編製

    void QtWebEngine:: initialize ()

    Sets up an OpenGL Context that can be shared between threads. This has to be done after QGuiApplication is created, but before a Qt Quick window is created.

    這有相同效果如設置 Qt::AA_ShareOpenGLContexts 屬性采用 QCoreApplication::setAttribute 先於構造 QGuiApplication .