Unsolved Error when trying to use QWebEngine
-
Hello there,
i am quite new to QTCreator and i am trying to build a little App for Android where i use a QWebEngine.
But i got a problem with that.
If i just include "import QtWebEngine 1.3" in my QML file, it cant find the QML module.
So i tried to add "QT += webengine" in my project file, but i get this error then: "Project ERROR: Unknown module(s) in QT: webengine".
Can anyone help me ?I am using Windows 10 and Qt Creator 4.1.0
Based on Qt 5.7.0 (MSVC 2013, 32 bit)If you need any additional information just tell what you need.
Thanks in advance.
Dennis -
QtWebEngine does not support Android. You should use Qt WebView instead, which wraps native browser engine
-
Thanks, i tried to use QWebView, but i have the same problem there.
If i try to execute, i get the message: qrc:/Navigation.qml:3 module "QtWebKit" is not installed
Or qrc:/Navigation.qml:4 module "QtWebView" is not installed
if i try to use the WebView.
Can you tell me why my QT does not know these packages? -
Hi and welcome to devnet,
@Konstantin-Tokarev meant the QtWebView module. QtWebkit does not support Android either.
That's a platform constraint and has nothing to do with Qt. -
Actually, Android does not restrict use of 3rd party browser engines like iOS, so lack of QtWebKit/QtWebEngine on Android is more about porting work that was not done.
In fact, QtWebKit was known to build on Android, but it didn't work well enough to advertise Android as supported platform.
-
My bad, I remembered wrongly. Thanks for the explanation !
-
Hello
I am getting this error " Unknown module(s) in QT: webengine" when I try to build with mingw53_32 compiler. I am using QT creator 4.1.0. Will it support webengine? (I couldn't find this dll inside Qt\5.7\mingw53_32\qml).
Please suggest.
-
@manikandan_0617 QtWebEngine is not available for MinGW compiler. You either need to switch to MSVC, or use QtWebKit
-
@Konstantin-Tokarev Thanks.