Webassembly issue Project ERROR: Unknown module(s) in QT: webengine
-
According to the documentation here https://wiki.qt.io/Qt_for_WebAssembly, it says
qtwebviewisn't supported. But does it supportWebEngineView?I have this code here, it compiles well on desktop but when I try to run
/Users/mac/Qt/5.15.0/wasm_32/bin/qmake .., I run into errorProject ERROR: Unknown module(s) in QT: webengineHere is the code
import QtQuick 2.15 import QtQuick.Window 2.15 import QtWebEngine 1.10 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") WebEngineView{ url: "https://google.com" anchors.fill: parent } }And in the .pro file
QT += quick qml webengine -
I found out that the
QtWebEnginemodule is indeed not available and insteadQtWebViewis available. After replacingWebEngineViewwithWebView, the compiling error is gone and the program compiles.But yes
QtWebviewis unsupported as it is integrated withQtWebengineView