diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-04-18 14:42:00 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-04-18 14:42:00 +0200 |
commit | ee2b1e71a80f88de90a03e10a89ba491ef99d308 (patch) | |
tree | b14cd541a3f7ad1fc6739e0f5a02d479334b6b34 /src/webengine/doc/src | |
parent | 61bdfb046700068afe36007ede3dcba1104099a3 (diff) | |
parent | 7db354d1a21a17da76244b77c35d7297be3a86a9 (diff) |
Merge branch '5.6' into 5.7
Change-Id: I490e0ee46d3ff040ca26426feb7e4d6ef7098f94
Diffstat (limited to 'src/webengine/doc/src')
-rw-r--r-- | src/webengine/doc/src/qtwebengine-overview.qdoc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/webengine/doc/src/qtwebengine-overview.qdoc b/src/webengine/doc/src/qtwebengine-overview.qdoc index 18c1f462d..eae16c5e5 100644 --- a/src/webengine/doc/src/qtwebengine-overview.qdoc +++ b/src/webengine/doc/src/qtwebengine-overview.qdoc @@ -157,6 +157,24 @@ a QWebEngineCookieStore for accessing the HTTP cookies of Chromium. A QWebEnginePage can also directly point to a script collection. + For a widget based application, the web engine is automatically initialized, unless it is + placed in a plugin. In that case, it must be initialized in the application main source file + by using \l QtWebEngine::initialize, as illustrated by the following code snippet: + + \code + int main(int argc, char **argv) + { + QApplication app(argc, argv); + + QtWebEngine::initialize(); + + QMainWindow window; + window.show(); + + return app.exec(); + } + \endcode + \section1 Embedding Web Content into Qt Quick Applications The WebEngineView QML type allows Qt Quick applications to render regions of dynamic web |