diff options
author | Michal Klocek <michal.klocek@qt.io> | 2020-04-14 12:37:14 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2020-04-15 07:31:13 +0000 |
commit | d47cad5ca5c3788fedc0a53930e47efb869f9315 (patch) | |
tree | 7d303d63df88571a735d68b8c6bb9e7eb5d65955 /src | |
parent | c6d4bb78fe59a55ffce526ff951e5c5270dd92cf (diff) |
Fix WebView::initialize() call order
QWebEngine should be initialized before QGuiApplication.
The other way around is deprecated. Update docs and example.
Initialize call is also used by darwin plugin but it should
not matter in this case.
Fixes: QTBUG-80912
Task-number: QTBUG-76391
Change-Id: I1037346707a3f4e24286ccaba25f8e5c3301ef36
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/webview/doc/src/qtwebview-overview.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/doc/src/qtwebview-overview.qdoc b/src/webview/doc/src/qtwebview-overview.qdoc index 8ccadd9..0c2330b 100644 --- a/src/webview/doc/src/qtwebview-overview.qdoc +++ b/src/webview/doc/src/qtwebview-overview.qdoc @@ -46,8 +46,8 @@ \section1 Prerequisites To make the Qt \WebView module function correctly across all platforms, it's necessary - to call \l {qtwebview-initialize}{QtWebView::initialize}() right after creating the - QGuiApplication instance. + to call \l {qtwebview-initialize}{QtWebView::initialize}() before creating the + QGuiApplication instance and before window's QPlatformOpenGLContext is created. \section1 QML Types |