Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.14.1
-
-
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
- relates to
-
QTBUG-81255 [Reg 5.14.0 -> 5.14.1] Cannot build certain qtquick applications on iOS
- Closed
-
QTBUG-81699 [Reg 5.14.0 -> 5.14.1] "qmlRegisterType requires absolute URLs." error
- Closed