diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-12-16 12:53:30 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-23 11:09:21 +0100 |
commit | 7d39fa4acaa38dbaa1977cbff6500f338a59250c (patch) | |
tree | 11d08d555abdf904608467392112fc1a24d88ccb /tools/buildscripts/qtwebengine_utils.py | |
parent | e78497c702447ce15369e18828bf1dc1aa073620 (diff) | |
download | qtwebengine-7d39fa4acaa38dbaa1977cbff6500f338a59250c.tar.gz |
createWindow QML API for QQuickWebEngineView
This implements adoptNewWindow for QQuickWebEngineView.
The API is only intended to be used through QML to avoid delegating
the QQuickWebEngineViewHandle ownership through a signal parameter.
Another limitation of the implementation is currently to fail the
handle adoption unless it is done synchronously within the
adoptNewWindow call. To support this we would need to delay the call
to WebContentsAdapter::initialize which will leave the adapter
without a client when returning to the event loop and would require
putting null checks everywhere it is used.
So I would prefer to keep the API limited and avoid potential crashes.
If we want to support asynchronous Loader elements or QML files
fetched from the network in the future, the API should be able to
scale to the task once we've adjusted the implementation.
This also adds basic tabs support in the quicknanobrowser example.
The url property is now set imperatively to avoid overwriting the
adopted WebContentsAdapter's loading URL.
Change-Id: Iba5c5dc3ffa21045f356be131ca15c01b9aee7c8
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'tools/buildscripts/qtwebengine_utils.py')
0 files changed, 0 insertions, 0 deletions