import of qml modules only works with full paths?!
You can import directories with qml modules and then use the definitions found there, eg:
where QMLImporting contains the qml files, eg. "MyRect.qml"
This works perfectly if you specify a full path with the prefix "file://"
Relative paths don't work at all. They all result in breaking errors like "Komponente erzeugen schlug fehl" / "has no qmldir and no namespace" / "no such directory" OR the definitions are not found, eg. message "MyRect is not a type".
I also have copied "MyRect.qml" to any directory imaginable - doesn't work either:
Inside the same dir as the calling plugin, any directory inside Plug-Ins, MuseScore dirs, not working.
Also tried to set the environment variable QML_IMPORT_PATH - not working
- for MS2/MS3
- for linux, Ubuntu/Windows
- for Loader, although you can solve the problem procedurally - which is still not desirable
Has anybody ever found a solution for this? Is this working Am I doing something wrong?