Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-17 Thread Sylvain Pointeau
Hello Artem, it works! your code sample pointed me on the issue. You were using "applicationDirPath", I was using QStandardPaths:: writableLocation(QStandardPaths::TempLocation) I tested applicationDirPath, same as you, it worked. (but this directory is not good because not writable.) then I tri

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-17 Thread Sylvain Pointeau
Hummm, that’s getting really strange. I will create a git repo this evening so we can speak about the same code. On Mon, 17 Sep 2018 at 09:06, Artem Sidyakin wrote: > > OK it works on macos, but what about iOS? > > I was talking about iOS :) > It works on iOS, my last e-mail was exactly about th

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-17 Thread Artem Sidyakin
> OK it works on macos, but what about iOS? I was talking about iOS :) It works on iOS, my last e-mail was exactly about that. --- Artem Sidyakin > On 17 Sep 2018, at 01:13, Sylvain Pointeau wrote: > > > On Sun, Sep 16, 2018 at 5:24 PM Artem Sidyakin wrote: > I would understand if local file

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-16 Thread Sylvain Pointeau
On Sun, Sep 16, 2018 at 5:24 PM Artem Sidyakin wrote: > I would understand if local file loading was allowed and remote forbidden, > but not the other way around. So if remote works, so should local. > No, a local file can be a threat if you receive it by email etc. Especially on an iOS where th

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-16 Thread Artem Sidyakin
I would understand if local file loading was allowed and remote forbidden, but not the other way around. So if remote works, so should local. To confirm that, I simply copied files into the app bundle (Show Package Contents) and just to be sure checked if they are “accessible”: foreach(QString

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-16 Thread Sylvain Pointeau
Le dim. 16 sept. 2018 à 12:22, Artem Sidyakin a écrit : > Original question was about “communication between WebView and QML on > iOS”, which does work, as we can see. > Now there is an issue of loading HTML documents from file/resource system, > but that’s a different kind of issue, innit (which

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-16 Thread Artem Sidyakin
Original question was about “communication between WebView and QML on iOS”, which does work, as we can see. Now there is an issue of loading HTML documents from file/resource system, but that’s a different kind of issue, innit (which I also would like to get to the bottom of). > you confirm tha

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-16 Thread Sylvain Pointeau
> > Are you sure the WebView can load from the resources (url: > “qrc:/index.html)? > > I knew it cannot (does qrc:/ work on iOS at all?), but I was silently > waiting for someone to provide the way it should be done on iOS :) > Unfortunately no-one did, so apparently it’s a bigger problem than I >

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-15 Thread Artem Sidyakin
> I hadn’t heard about this change and old habits die hard I can certainly double that! Good news. > Are you sure the WebView can load from the resources (url: “qrc:/index.html)? I knew it cannot (does qrc:/ work on iOS at all?), but I was silently waiting for someone to provide the way it shou

Re: [Development] [Interest] qtwebview with qtwebchannel

2018-09-15 Thread Sylvain Pointeau
to make it clearer, it does work on the simulator but not on my ipad device. @qt developers, please could you confirm if the webchannel is working or not on ipad (with the webview) ? Le ven. 14 sept. 2018 à 22:43, Sylvain Pointeau a écrit : > Hello, > > I finally succeeded to make it working on