Qt5.6 中的跨平台 webview

Crossplatform webview in Qt5.6

我在 Windows 10 64x 上使用 Qt 5.6 和 MinGW 来开发跨平台应用程序(桌面 + 移动)。

在 Qt 5.5 中,我可以使用 WebKit 制作一个跨平台应用程序来在我的应用程序中显示网页,我可以在 Windows、Android、iOs 上使用它... 今天,我意识到我们不能再使用它了,我们不能将 QtWebView 用于 Windows,也不能将 QtWebEngine 用于 MinGW。

因此,我很困惑:知道我想使用当前配置(对于 android 桌面版和移动版)显示网页,我该怎么办?

有希望在下一个Qt版本中解决吗?

编辑: 即使我想 运行 Qt special webview (minibrowser) example,它也显示 qmake error:

Project ERROR: Unknown module(s) in Qt: webenginewidgets
Project ERROR: Unknown module(s) in Qt: webview

您不能将 MinGW 用于带有 Qt 的 Web 引擎。据说here:

Windows: Visual Studio 2013 or Visual Studio 2015

并且您可以在 this page. Also, the fact that MinGW can't be used with Qt WebEngine has been reported as bugs (e.g. 42725 上找到更多信息)并且解释如下:

It is very unlikely that Chromium itself will support MinGW, and likewise it would be a lot of work for the QtWebEngine team to achieve this. It is quite a shame that Qt MinGW packages will be incomplete because of this.

Chromium 是 QWebEngine 集成的浏览器,QWebkit 集成的浏览器是 WebKit,因此 QWebEngine.[=17 不能再使用 MinGW =]