Qtwebengine on Android
-
Hi,
I'm trying to porting my application to Android and I have a qml with a webview, I read that QtWebKit was replaced by QtWebEngine so I update it (WebView -> WebEngineView). I also read that QtWebEngine support Android ("link":http://qt-project.org/wiki/QtWebEngine) but when I have tried to compile it I had this error:Project ERROR: Unknown module(s) in QT: webengine
My .pro include: @QT+= qml quick widgets webengine@
My qml import: @import QtWebEngine 1.0@
Are there other imports for android?
-
Hi,
try
"Porting from Qt WebKit to Qt WebEngine.":http://qt-project.org/wiki/QtWebEnginePortingFromQtWebKit#8d96d1b10c6eb6c309d64e899cea9e83 -
Hi, thanks for your reply.
[quote author="bablzz" date="1424424152"]Hi,
try
"Porting from Qt WebKit to Qt WebEngine.":http://qt-project.org/wiki/QtWebEnginePortingFromQtWebKit#8d96d1b10c6eb6c309d64e899cea9e83[/quote]I have read the guide, however with webengine and webenginewidgets there is always the same error:
@QT+= qml quick widgets webenginewidgets@
Project ERROR: Unknown module(s) in QT: webenginewidgets
or
@QT+= qml quick widgets webengine@
Project ERROR: Unknown module(s) in QT: webengine
The problem comes only when I'm trying to compile my code for Android, if I compile for linux there isn't any problem.
-
Hi,
Qt WebEngine is not available on mobile platforms.
Use "Qt WebView":http://doc.qt.io/qt-5/qtwebview-index.html instead
-
[quote author="JKSH" date="1424486520"]Hi,
Qt WebEngine is not available on mobile platforms.
Use "Qt WebView":http://doc.qt.io/qt-5/qtwebview-index.html instead[/quote]
Thanks a lot, it works!