PDA

View Full Version : Webassembly Project ERROR: Unknown module(s) in QT: webengine



chilly5476
31st August 2020, 12:37
According to the documentation here https://wiki.qt.io/Qt_for_WebAssembly, it says qtwebview isn't supported. But does it support WebEngineView?

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 error Project ERROR: Unknown module(s) in QT: webengine

Here 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

chilly5476
31st August 2020, 16:38
I found out that the QtWebEngine module is indeed not available and instead QtWebView is available. After replacing WebEngineView with WebView, the compiling error is gone and the program compiles.

It again runs without any issue on the desktop. But, now I have this issue in my Google Chrome browser
and displays a Blank browser page

qtloader.js:382 - No WebView plug-in found!

Please help

chilly5476
1st September 2020, 09:32
QtWebview is integrated with QtWebengineView. Hence, it wont work