Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81713

[Reg 5.14.0 -> 5.14.1] WebAssembly: module "QtQuick.Controls" is not installed, Exit code -1

    XMLWordPrintable

Details

    • WebAssembly
    • 495db2cd2bb9130864f2dd1291788288765dfe7a (qt/qtbase/5.14) 38e6b511e9a5215ef0e8b3217fb51b5f8fbaa62d (qt/qtdeclarative/5.14)

    Description

      I try to build and run an application with the following qml code with Qt for WebAssembly

      import QtQuick 2.14
      import QtQuick.Window 2.14
      import QtQuick.Controls 2.13
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Button {
              id: button
              x: 135
              y: 150
              text: qsTr("Button")
          }
      }
      

      While everything works well with Qt 5.14.0, when using Qt 5.14.1, I get the following error at startup in the web console

      qmlRegisterType requires absolute URLs. 55 qtloader.js:382:25
      QQmlApplicationEngine failed to load component qtloader.js:382:25
      qrc:/main.qml:11:5: Button is not a type qtloader.js:382:25

      Somehow it seems that the QtQuick.Controls plugin does not get linked into the .wasm binary. The 5.14.0 .was file is ~23MB big, while the 5.14.1 version is opnlue ~19MB big.

      I am on Windows, using sdk-fastcomp-1.38.27-64bit

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ulherman Ulf Hermann
              portale Alessandro Portale
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes