Qt WebKit移动版 [英] Qt WebKit On Mobile

查看:88
本文介绍了Qt WebKit移动版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试渲染网页. Qt表示,自4.8 此处起,他们的QtWebKit就可用于移动设备.

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

如果要定位移动设备,则应考虑使用QGraphicsWebView而不是QWebView.

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

它们都在QtWebKit下.那我想念什么?

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

推荐答案

如果您谈论的是Android和iOS,那是不对的.从Qt 5.2的发行页面引用Digia:

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在 Android 上不受支持,我们正在努力提供一种跨平台API,以将Web内容集成到移动应用程序中.如果要将Web内容合并到Qt应用程序中,则需要使用本机Web组件.为了简化与本地内容的交互,我们为 Qt Android Extras 模块提供了JNI便捷API.

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.

iOS也是如此,Apple明确禁止使用除其以外的其他WebKit.

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

Digia当前正在开发新的网络引擎应该在Android平台(和嵌入式Linux)上可用,并且现在在

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.

为简化开发人员的工作,在同一新版本Qt 5.4中,Digia提供了 Qt WebView 的技术预览;再次引用他们的博客:

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

对于不允许Qt WebEngine分发的平台以及不需要完整Web引擎的用例,Qt 5.4将引入称为Qt WebView的新模块的技术预览.它支持将基础操作系统的本机Web引擎嵌入到Qt中,并且当前可用于Android和iOS.因此,Qt WebView还为简单的Web文档集成提供了一种便捷的轻量级解决方案. Qt WebView将与Qt 5.4 final一起作为单独的附件提供.

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.

这篇关于Qt WebKit移动版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆