I am working on project that will hold shared qml components such as a button, status bar, numeric key pad, etc. I want to be able to compile these qml files into one binary (.so/.dll) to provide for use for multiple applications. currently this is my folder structure for the shared application which is setup as a lib SharedProject (folder structure) - .pro file - sharedassets.qrc - sharedcontrols.qrc - sharedassests (folder) -.qml -.png - qmldir.txt - sharedcontrols (folder) - *.qml -qmldir.txt In my test application I am trying to get these controls to show up through a compile library or rcc file but I am unable to I have tried the following
- QResoure::registerResoure() in the main.cpp of the test application
- QML_IMPORT_PATH += dir of the SharedProject
- QML2_IMPORT_PATH += dir of the SharedProject
(The above works but still requires me to have the qml files within some folder. I need them to be binary and then be able to utilize them in qt creator)
any help on how to properly put my qml into a complied library would be helpful. I have read the Qt modules tutorial but still feel lost on how to accomplish this. If anyone has an example that I can reference would be vary helpful.