The FileSystemModule qmldir was explicitly put into the "/" resource
prefix, but that prefix is not a default qml import path. That caused
the qml module not to be found when building on macOS as an app
bundle, which relies only on resources and not the file system to find
the module.
To ensure the module qmldir is found in the resources, we want it to
be placed in the default qml import path ':/qt/qml'. To do that,
remove the previously specified RESOURCE_PREFIX option and enable
the QTP0001 policy by requiring Qt 6.5+, which will put the module
qmldir into :/qt/qml/FileSystemModule/qmldir.
Because the policy also changes the resource prefix for other
resources (images), adjust all Image source urls to be relative paths
(relative to the component), instead of absolute paths.
Also adjust the qmake generated qrc file to place the files into the
new resource prefix.
Amends
|
||
---|---|---|
.. | ||
attachedstyleproperties | ||
chattutorial | ||
contactlist | ||
eventcalendar | ||
filesystemexplorer | ||
flatstyle | ||
gallery | ||
imagine | ||
ios/todolist | ||
texteditor | ||
wearable | ||
CMakeLists.txt | ||
quickcontrols.pro |