Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0 Beta3
-
None
Description
Hi,
I am trying to load a module like:
QML_IMPORT_NAME = MyModule QML_IMPORT_MAJOR_VERSION = 1 SOURCES += \ main.cpp HEADERS += \ filesystemmodel.h qml_resources.files = \ qmldir \ Main.qml \ MyType.qml qml_resources.prefix = /qt/qml/MyModule RESOURCES += qml_resources
https://www.qt.io/blog/whats-new-for-qml-modules-in-6.5
Windows and Android are working fine, however wasm cannot find the module. I tried to add import path but engine.loadFromModule() still fails. If I use QQmlApplicationEngine::load() with the path qrc:/qt/qml/MyModule/Main.qml it works.
This seems related to https://bugreports.qt.io/browse/QTBUG-102595
Attachments
Issue Links
- relates to
-
QTBUG-102595 Builds can't find the projects qml modules
-
- Closed
-