Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Webassembly issue Project ERROR: Unknown module(s) in QT: webengine

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

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
2 Posts 1 Posters 613 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chilarai
    wrote on 31 Aug 2020, 11:13 last edited by
    #1

    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
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      chilarai
      wrote on 31 Aug 2020, 15:33 last edited by chilarai 9 Jan 2020, 08:31
      #2

      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.

      But yes QtWebview is unsupported as it is integrated with QtWebengineView

      1 Reply Last reply
      0

      1/2

      31 Aug 2020, 11:13

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved