You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello quick question is it possible to add WebView or WebEngine?. Can anyone give me any advice on how one would go about doing this, or even if its possible? Thanks
The text was updated successfully, but these errors were encountered:
It's something I've looked into in the past, and I believe the short answer was : nope !
But there's a long answer.
There's already an implementation of WebView in qmlweb (use import QtWebView 1.0). It uses an iframe to provide a result similar to the native WebView... but some features are unavailable: history, loading html directly into the iframe, managing cookies...
These are things that we just can't do reliably with iframes, mostly because of the default CORS setup, which will prevent you from running JavaScript within an iframe... which you'd definitely need to do stuff like injecting HTML, managing the history, etc.
Basically, and if memory serves well : assuming you use the WebView to display a page that's hosted on a server that you own, then you could configure it to allow your QMLWeb application to run JavaScript inside the iframe. An implementation of WebView within QMLWeb could work on these conditions.
The same argument can be made for WebEngine... there's probably a whole bunch of stuff in WebEngine that just cannot be done through JavaScript code that would run from within a browser.
Anyhow, if you're interested in trying to provide a better WebView implementation, I can provide some guidance... but I'm a bit too busy at the moment to tackle this right now.
Hello quick question is it possible to add WebView or WebEngine?. Can anyone give me any advice on how one would go about doing this, or even if its possible? Thanks
The text was updated successfully, but these errors were encountered: