The Qt WebChannel module offers Qt applications a seamless way to publish `QObjects` for interaction
as WebSocket is available.
Qt WebChannel uses introspection on the `QObject`s and sends this serialized data to the clients.
the `QObject`. Any invokable methods, including slots, can be called as well as properties read and
This module depends on Qt Core only. Optionally, an additional plugin for Qt Quick can be built, which
makes it easy to use a `QWebChannel` from QML. Note that this module alone is not functional. It
clients. You can integrate it in your projects as well, by providing an implementation of the
`QWebChannelAbstractTransport` class, see the `standalone` example for how to do this.
### Usage from C++
To use the Qt/C++ library, add the following to your `QMake` project:
QT += webchannel
Then, in your C++ code, construct a webchannel, then publish your `QObject`s:
Additionally, you need to provide a communication channel to the HTML client. One way is to
`src/webchannel/qwebchannel.js` and setup the connection to a client-side transport. An example
which shows all this in action can be found in `examples/standalone`.
### Usage from Qt Quick
For QML applications, use the following import:
import QtWebChannel 1.0
Then setup the WebChannel, register objects to it and connect to transport objects:
registeredObjects: [foo, bar, ...]
To see this in action, take a look at the test code in `tests/auto/qml`.