Qt WebKit On Mobile

I am trying to render a web page. Qt says their QtWebKit is available for mobile since 4.8 here

If you want to target mobile devices you should consider using QGraphicsWebView instead of QWebView.

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

Upvotes: 3

Views: 2717

Answers (1)

BaCaRoZzo
BaCaRoZzo

Reputation: 7692

If you are talking about Android and iOS, it's just a no-no. Citing Digia from the release page of Qt 5.2:

Qt Webkit is not supported on Android and we are working on providing a cross-platform API to integrate web content into mobile apps. If you you would like to incorporate web content into your Qt application, you need to use a native web component. To make interacting with native contents easier, we are providing the Qt Android Extras module with a JNI convenience API.

The same goes for iOS where Apple explicitly forbids the usage of other WebKits, apart from their.

Digia is currently working on a new web engine which should be available on the Android platform (and embedded Linux) and it is now available in the Qt 5.4 beta. The same policies issues of Qt webkit applies to the web engine, w.r.t. iOS.

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

For platforms that do not allow distribution of Qt WebEngine as well as use cases where a full-blown web engine is not needed Qt 5.4 will introduce a technology preview of a new module called Qt WebView. It supports embedding the native web engines of the underlying operating system into Qt, and is currently available for Android and iOS. Because of this, Qt WebView also gives a convenient light-weight solution for simple web document integration. Qt WebView will be available with Qt 5.4 final as a separate add-on.

Upvotes: 6

Related Questions