[SailfishDevel] Path to main qml in resource file - not found whatever I try

kim at foder.dk kim at foder.dk
Wed Apr 23 07:43:08 UTC 2014


> PROBLEM: what path should I use in the main.cpp file to point to the main qml file in the resource?

> SailfishApp::pathTo("qrc:/qml/main.qml") returns /usr/share/myapp/qrc/qml/main.qml  - not found

To load the QML file from resource, you should not use SailfishApp::pathTo, instead use QUrl("qrc:/qml/main.qml").

/Kim


More information about the Devel mailing list