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 .