内容表

上一话题

PySide2.QtWebEngine

下一话题

PySide2.QtWebEngineCore

QtWebEngine

用于 Qt WebEngine (Qt Quick) 模块的帮助程序函数。 更多

Inheritance diagram of PySide2.QtWebEngine.QtWebEngine

概要

静态函数

详细描述

QtWebEngine 名称空间属于 Qt WebEngine 模块。

static PySide2.QtWebEngine.QtWebEngine. initialize ( )

设置可以在线程之间共享的 OpenGL 上下文。这必须做到先于 QGuiApplication is created and before window’s QPlatformOpenGLContext is created.

这有相同效果如设置 AA_ShareOpenGLContexts 属性采用 setAttribute 先于构造 QGuiApplication .