diff options
author | Corentin Jabot <corentinjabot@gmail.com> | 2015-12-16 10:18:30 +0100 |
---|---|---|
committer | Corentin Jabot <corentinjabot@gmail.com> | 2015-12-18 14:10:13 +0000 |
commit | 6a8d99ab00ace2084820547572dc05ac8ad2bc5a (patch) | |
tree | 11b8d09ed4ac18e82f74e9abd5470b773ae39b70 /tools/buildscripts/qtwebengine_utils.py | |
parent | 1cf9175e06db9c8c0388e21279b15b011fb593c2 (diff) | |
download | qtwebengine-6a8d99ab00ace2084820547572dc05ac8ad2bc5a.tar.gz |
Never call QtWebEngine::initialize from DllMain
On windows, calling QtWebEngine::initialize from DllMain may crash,
depending on what QPA backend is used.
We make sure to only add a qAddPreRoutine initializing QtWebEngine
if there is no instance of QCoreApplication.
By doing so, we support linking to QtWebEngineWidget from a plugin,
while still initializing the WebEngine automatically when linked to
the main application binary.
Change-Id: I4f72aa10103de29ce53fe3dd88457d093b705599
Task-number: QTBUG-46720
Reviewed-by: Jocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com>
Diffstat (limited to 'tools/buildscripts/qtwebengine_utils.py')
0 files changed, 0 insertions, 0 deletions