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 | [email protected] | 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
