Solved reuse QML files over different subprojects
-
I need to reuse a qml component located on a different resource file located under a different subproject.
It's possible? -
@MirkoV copying to local project under resource file will work.
-
No you can't. The "reusable" qml file it's not in a subdirectory.
-
Ok just found a trick: put the qml files in the "qml" directory with a suitable qmldir file.
This can be quite a good solution, but the qml file is publicly exposed :-( -
https://www.kdab.com/embedding-qml-why-where-and-how/
This is the solution (and worked for me).