Results 1 to 3 of 3

Thread: Webassembly Project ERROR: Unknown module(s) in QT: webengine

  1. #1
    Join Date
    Aug 2020
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Webassembly Project ERROR: Unknown module(s) in QT: webengine

    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


    Qt Code:
    1. import QtQuick 2.15
    2. import QtQuick.Window 2.15
    3. import QtWebEngine 1.10
    4.  
    5.  
    6. Window {
    7. visible: true
    8. width: 640
    9. height: 480
    10. title: qsTr("Hello World")
    11.  
    12. WebEngineView{
    13.  
    14. url: "https://google.com"
    15. anchors.fill: parent
    16. }
    17. }
    To copy to clipboard, switch view to plain text mode 


    And in the .pro file

    Qt Code:
    1. QT += quick qml webengine
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Aug 2020
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Webassembly Project ERROR: Unknown module(s) in QT: webengine

    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
    Qt Code:
    1. qtloader.js:382 - No WebView plug-in found!
    To copy to clipboard, switch view to plain text mode 

    Please help
    Last edited by chilly5476; 31st August 2020 at 17:52. Reason: updated contents

  3. #3
    Join Date
    Aug 2020
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Webassembly Project ERROR: Unknown module(s) in QT: webengine

    QtWebview is integrated with QtWebengineView. Hence, it wont work

Similar Threads

  1. Project ERROR: Unknown module(s) in QT: mqtt
    By akkarachai in forum Newbie
    Replies: 3
    Last Post: 16th February 2020, 17:43
  2. Replies: 4
    Last Post: 24th April 2019, 11:36
  3. Project ERROR: Unknown module(s) in QT: webenginewidgets
    By mandlakoteswar2011 in forum Qt Programming
    Replies: 4
    Last Post: 5th April 2018, 09:09
  4. Replies: 3
    Last Post: 5th September 2014, 13:58
  5. Project ERROR: Unknown module(s) in QT: quick
    By Raghaw in forum Qt Quick
    Replies: 0
    Last Post: 4th December 2013, 06:56

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.