用于 Qt WebEngine (Qt Quick) 模块的帮助程序函数。 更多 …
def
initialize
()
QtWebEngine 名称空间属于 Qt WebEngine 模块。
PySide2.QtWebEngine.QtWebEngine.
initialize
(
)
¶
设置可以在线程之间共享的 OpenGL 上下文。这必须做到先于
QGuiApplication
is created and before window’s QPlatformOpenGLContext is created.
这有相同效果如设置
AA_ShareOpenGLContexts
属性采用
setAttribute
先于构造
QGuiApplication
.