On Thursday, March 31, 2016 4:46:58 PM CEST Allan Sandfeld Jensen wrote:
> On Thursday 31 March 2016, Sylvain Pointeau wrote:
> > On Tue, Mar 29, 2016 at 10:24 AM, Sylvain Pointeau <
> > 
> > sylvain.point...@gmail.com> wrote:
> > > On Tue, Mar 29, 2016 at 8:31 AM, Kalinowski Maurice <
> > > 
> > > maurice.kalinow...@theqtcompany.com> wrote:
> > >> > QtWebView has a QtWebEngine backend, and that should be available on
> > >> 
> > >> Windows.
> > >> 
> > >> For UWP/WinRT there is a platform specific implementation loading Edge
> > >> into your application. For classic desktop applications you can use Qt
> > >> Webengine as Alan described.
> > > 
> > > Excellent! do you know if / how I can use the WebChannel (or WebSocket)
> > > with QtWebView?
> > > (I tried to use WebSocketServer but it does not work on iOS.)
> > 
> > any idea? I would like to know if I can use Qt on android/ios/windows for
> > hybrid applications...
> 
> I don't know if it is possible on iOS. I believe you have to be allowed to
> setup a websocket.

It should be possible, but I haven't tried it myself and have zero iOS 
knowledge. What you need:

Qt/C++ side:
1) initialize a Qt WebSocket server
2) wrap that server in a WebChannel transport

HTML side:
1) load your HTML in any web view
2) load qwebchannel there, you will have to copy it, or create a trivial HTML 
server in your C++ side to "deploy" it from the Qt resource system to the web 
view
3) initialize the webchannel with a websocket client using the server address 
from the Qt/C++ side

The Qt WebChannel examples contain a chat e.g. that uses your system browser 
to do the above, and it works fine with Explorer, Firefox and Chrome. So as 
long as WebSockets work on iOS WebView, and Qt WebSockets work on iOS, it 
should work.

Bye
-- 
Milian Wolff | milian.wo...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to