Den 12-03-2012 22:25, christian.d.k...@nokia.com skrev: >> 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.
Ok, thanks for confirming this. I wasn't able to find the answer for sure in the documentation, although I did suspect it to be the case. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk _______________________________________________ Qt-qml mailing list Qt-qml@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-qml