Clarify connections between webview and webchannel.
authorMilian Wolff <milian.wolff@kdab.com>
Mon, 21 Jan 2013 12:34:56 +0000 (13:34 +0100)
committerMilian Wolff <milian.wolff@kdab.com>
Mon, 21 Jan 2013 12:34:56 +0000 (13:34 +0100)
commit3fec4c37d51ec06625b2a5689e8e311c6326f67e
treea6907be7d92f36cc72dfcb3b1ee76f50e601d092
parent8146643bcf00c56ca900f485f1fd88d287f0a434
Clarify connections between webview and webchannel.

We register objects once after the webchannel has initialized.
The web view URL on the other hand gets changed via property
binding after the web channel's base url is set/modified.

This hopefully fixes a race condition between the client-side HTML
logic and the registering of objects on the host-side QML app.
examples/qtobject/qml/qtobject/main.qml
src/qwebchannel.cpp
src/qwebchannel.h