> QML_IMPORT_PATH was exactly the variable I was looking for, thanks. But
> unfortunately it doesn't work :(

...

> The mylib.pri installs the qml files to the same qml directory as the
> main qml files, so at runtime this is fine.

Ah, I'm sorry, that's not something QML_IMPORT_PATH can help with. It just adds 
to the QML module search path so qmldir files below the listed directories will 
be found. E.g. if you have

foo/my/module/qmldir

and set it to foo/ you could "import my.module". It won't help in your 
situation. The best solution is using an import like you did in your workaround.

Cheers,
Christian, 
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to