I am porting Qt(C++) and qml based app to Android platform. I am not using Qt Creator because of the nature of the project.
I have done compiling the code using ndk and generated all the required .so files for my C++ components. Created the project in Android studios, included the jiniLibs(*.so) files, alos, used Qt provided Activity/Loader/Delegate classes and to write Android app. App loads the "main.so" and application get started. I can see the logs which tells me that its loaded. I have created QGuiApplication object and while creating QmlComponent, I am trying to pass main.qml into QmlComponent instance within main.so but I don't know how to specify the path of main.qml?
I tried qrc:/main.qml, assets:/main.qml but no luck.
NOTE: I placed my main.qml in assets folder. I am not even sure where to put that file while packaging.
Looking for suggestions, how do we specify assets/resource paths inside C++ code. In future, I need load many other resources.
Thanks,
-Syed
I tried
qrc:/main.qml,assets:/main.qmlbut no luck.
Thanks for your response. I don't have .pro file. I am using cmake to build the project but I was able to map it.
Thanks again for your help.