diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-12-08 08:34:12 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2021-01-12 12:15:47 +0100 |
commit | 8e82991875c82916785823ba01a02614b04369de (patch) | |
tree | 4c5c12ded1b1b2bbeb65f652c9f219caeca2f90c /examples/webview/minibrowser/doc | |
parent | 566737c2e452d6873288f4ee4dddffdda79be565 (diff) |
Do the pre-initialization steps after the plugin paths are set
Since initialize() is called before the creation of the application
then we need to delay the actual implementation until the paths are
set. Therefore a prehook is used for the application object so that
these can be done before the application finishes initalizing. For
static builds we call this function right away, thus requiring the
need for the QtWebView::initialize() function to still exist.
Pick-to: 5.15
Change-Id: Ic4633cd1e96c39bc12f475fdd22c56646ea7ca10
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'examples/webview/minibrowser/doc')
-rw-r--r-- | examples/webview/minibrowser/doc/src/minibrowser.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/webview/minibrowser/doc/src/minibrowser.qdoc b/examples/webview/minibrowser/doc/src/minibrowser.qdoc index 20f03b0..1b91855 100644 --- a/examples/webview/minibrowser/doc/src/minibrowser.qdoc +++ b/examples/webview/minibrowser/doc/src/minibrowser.qdoc @@ -37,8 +37,8 @@ couple of controls to navigate through the browsing history. \note When using the Qt WebView module it is necessary to call QtWebView::initialize() - before creating the QGuiApplication instance. Calling QtWebView::initialize() will - ensure that the necessary pre-setup steps are run. + immediately before creating the QGuiApplication instance. Calling QtWebView::initialize() + will ensure that the necessary pre-setup steps are run. \snippet minibrowser/main.cpp 0 |