For desktops (Windows, Mac, Ubuntu), there is a
QWebEngineView and for mobiles (Android, iOS), there is a native
Unfortunately, mobiles don’t support
For example, as discussed in below post:
How to use Qt WebEngine and QWebChannel?
setWebChannel() is available in
QWebEnginePage which is accessible only in
QWebPage doesn’t have such method which is accessible in
Now, there is another platform independent way, which works on all the platforms, as discussed in Integrating Web Content.
But the example uses
QWebChannelAbstractTransport, which can be used only with
JSON. Now JSON, due to its over-descriptive nature, could be quite expensive, if the C++ module is sitting somewhere in server and HTML is local; i.e. real client-server communication over internet.
It would have been better, had they use protobuf.
channel.objects and I would like to retain that way.]