Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
6.5.3
-
None
-
openSUSE Tumbleweed, building for Android armv7 with Qt 6.5.3
-
-
f77c59459 (dev), e1fbca3d7 (6.6), 1f3cf4208 (6.5)
Description
I created a QML application with the default Qt Creator QML template, which includes a call to QQmlApplicationEngine::loadFromModule in main(), with arguments "com.example.qml_uri" and "Main". On Linux, this code compiles and runs, loading the autogenerated Main.qml. However, on Android, the app exits with the following message:
W Muziko : QQmlApplicationEngine failed to load component
W Muziko : <Unknown File>: Module "com.example.qml_uri" contains no type named "Main"
This seems like unintended behavior, and I certainly don't see any documentation on loadFromModule that would imply that this is a problem.