Use a file selector, roll both platforms into a custom component.
 http://www.ics.com/blog/mastering-qt-file-selectors
Sent: Tuesday, April 04, 2017 at 6:26 AM
From: "Mark Tucker" <mark.tuc...@airborne.aero>
To: "interest@qt-project.org" <interest@qt-project.org>
Subject: [Interest] QML WebView modules

Hi,

 

I'm currently trying to create a QML app that works on both a Linux platform and an Android platform. Due to the nature of my target platforms (embedded systems), I'm limited to Qt 5.5.1 and cannot upgrade.

 

Note that my app is pure QML and I cannot write any C++ code to solve this.

 

To get the app running on Android, I can put "import QtWebView 1.1" into my QML file imports, and then create a simple WebView component and set its URL and that works.

 

That same import doesn't work for me on Linux, however. I can use either "import QtWebKit 3.0" or "import QtWebEngine 1.1" (with the latter, changing my WebView to a WebEngineView too) and I can then see a webview that works with no issues, but neither of those are available on my Android target (nor, from what I understand, will they ever be).

 

So, is there a way I can get the QtWebView import working on Linux? I can't seem to figure out how to build it, or if it's even a valid option.

 

If not, then I guess that means I'll need to have different QML for both Linux and Android…

 

Thanks in advance

 

Mark

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

Reply via email to