Qt WebKit On Mobile

I am trying to make a web page. Qt says their QtWebKit is available for mobile devices with 4.8 here

If you want to target mobile devices, you should use QGraphicsWebView instead of QWebView.

Both of them are under QtWebKit. So what am I missing?

+3
source share
1 answer

If you're talking about Android and iOS, it's just no-no. Quoting Digia from the Qt 5.2 Release Page:

Qt Webkit is not supported on Android , and we are working to provide a cross-platform API for integrating web content into mobile applications. If you want to include web content in a Qt application, you need to use your own web component. To make it easier to interact with native content, we provide the Qt Android Extras module with the JNI API.

The same goes for iOS, where Apple explicitly prohibits the use of WebKits other than them.

Digia is currently working on a new web engine that should be available on the Android platform (and embedded Linux) and is now available in Qt 5.4 beta . The same Qt webkit policy issues apply to the web engine, IOS wrt.

To ease the work of developers, in the same Qt 5.4 release, Digia provides a preview of Qt WebView technology; quoting your blog again:

For platforms that prevent Qt WebEngine from being distributed, as well as in cases where a full-featured web engine is not needed, Qt 5.4 will present a preview of the technology of the new Qt WebView module. It supports the implementation of its own network engines of the base operating system in Qt and is currently available for Android and iOS. Because of this, Qt WebView also offers a convenient, lightweight solution for easily integrating web documents. Qt WebView will be available with Qt 5.4 final as a standalone add-on.

+5
source

All Articles