用于 Qt WebEngine (Qt Quick) 模块的帮助程序函数 更多...
头: | #include <QtWebEngine> |
void | initialize () |
用于 Qt WebEngine (Qt Quick) 模块的帮助程序函数
The QtWebEngine 名称空间属于 Qt WebEngine 模块。
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 .