I have two application where qml resources are not included using the ‘usual’ directory structures and includes:
In the one case, the resource is successfully initialized with
view->setSource(QUrl(“qrc:/src/gui/sailfishos/main.qml”));
but the application pane in the SDK shows:
[W] unknown:72 - qrc:/src/gui/sailfishos/pages/MainPage.qml:72:13: QML MenuItem: Binding loop detected for property “text”
[W] unknown:0 - Failed to determine initial active document: “No mapping exists for resource: ‘qrc:/src/gui/sailfishos/main.qml’”
I thought that maybe SailfishApp needs to know, but doubt this is the correct incantation:
view->setSource(SailfishApp::pathTo(QUrl(“qrc:/src/gui/sailfishos/main.qml”)));
I think, though, that the correct way is a mapping in the qrc file?
I’m hesitant to call this a bug since both cases are apps which where developed cross-platform.