Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crossplatform webview in Qt5.6

I am using Qt 5.6 with MinGW on Windows 10 64x for developing a cross platform app (desktop + mobile).

In Qt 5.5, I could use WebKit to make a cross platform app for showing web pages in my app, and I could use it on Windows, Android, iOs... Today, I realized we can't use it anymore, we can't use QtWebView neither for Windows and also can't use QtWebEngine with MinGW.

Thus, I am confused : knowing that I want to show a webpage using my current configuration (for android desktop and mobile version), what should I do?

Is there a hope it will be solved in the next Qt versions?

Edit: Even when I want to run Qt special webview (minibrowser) example, it shows qmake error:

Project ERROR: Unknown module(s) in Qt: webenginewidgets
Project ERROR: Unknown module(s) in Qt: webview
like image 491
HadiAbbasi Avatar asked Apr 25 '16 22:04

HadiAbbasi


1 Answers

You can't use MinGW for the web engine with Qt. It is said here:

Windows: Visual Studio 2013 or Visual Studio 2015

and you can find more information on this page. Also, the fact that MinGW can't be used with Qt WebEngine has been reported as bugs (e.g. 42725) and it is explained :

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 is the browser integrated by QWebEngine, and in QWebkit the browser integrated was WebKit, hence the fact you can't use MinGW anymore for QWebEngine.

like image 182
IAmInPLS Avatar answered Feb 05 '23 13:02

IAmInPLS