[Development] QtWebChannel scope

Milian Wolff milian.wolff at kdab.com
Fri Jul 4 11:36:07 CEST 2014


On Friday 04 July 2014 11:11:13 Bernd Lamecker wrote:
> Hi,
> 
> do you plan to use QtWebChannel only "locally" or will it be possible to use
> the javascript part to connect a pure QML client to an QObject backend or
> maybe even use the javascript to connect a NodeJS server to a QObject?

Hey,

the plan for 5.4 is to ensure it works well with WebView (and hopefully 
WebEngine as well) - so locally. But thanks to WebSockets, you can talk to 
arbitrary remote clients as long as they support WebSockets. NodeJS should 
thus be pretty trivial, I simply never tried it out so far but I don't see any 
problem with that.

Regarding QML client and QObject backend, that should work the same way. I 
just refactored the code yesterday and ported the unit tests such that they 
run the qwebchannel.js code inside V4. So you can setup a JS web channel in 
QML just fine and get objects somehow, e.g. again via websockets. What's 
missing here is an implementation or auto-wrapper of QQmlWebSocket for 
QWebChannelAbstractTransport. That's trivial to do though.

Bye

-- 
Milian Wolff | milian.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4773 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140704/9f42c1b3/attachment.bin>


More information about the Development mailing list