Hello,

   I need to ship two system QML plugins with my app for it to validate the
harbour recommendations. How can I do this ?

Let's take the example of QtPositioning

We have:
[nemo@SailfishEmul devel]$ rpm -ql qt5-qtdeclarative-import-positioning
/usr/lib/qt5/qml/QtPositioning
/usr/lib/qt5/qml/QtPositioning/libdeclarative_positioning.so
/usr/lib/qt5/qml/QtPositioning/plugins.qmltypes
/usr/lib/qt5/qml/QtPositioning/qmldir

So, in the spec file, I can install these three files in
/usr/share/$APPNAME/qml. But in the FAQ of the harbour, they say that one should
rename the import to harbour.appname.QtPositioning, when I grep QtPositioning in
qmldir and plugins.qmltypes, it appears a lot of times. Should I replace all
with APPNAME-QtPositioning ? Then, should the directory be renamed also ?

And finally, when all is shipped in the RPM, and everything has been renamed
properly, how can I expand the QML search dir to include also
/usr/share/$APPNAME/qml ?

Thanks for the help, have a nice day,

Damien.
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to