Hi Bo, On 12.03.2012 07:53, Bo Thorsen wrote: > QML_IMPORT_PATH was exactly the variable I was looking for, thanks. But > unfortunately it doesn't work :( > > I have a directory structure that looks like this: > > project/ > qml/ > Most QML files here > mylib/ > qml/ > More QML files > > The mylib.pri installs the qml files to the same qml directory as the > main qml files, so at runtime this is fine. > > I have added "QML_IMPORT_PATH = mylib/qml" to the pro file. This doesn't > make any difference to the QtC code model. I have tried stuff like > adding $$PWD and other attempts. No difference. The components are not > recognised.
What is the name of your mylib module? If I understand it correctly it is like that: if your module name is "dk.fioniasoftware.mylib" it would look for mylib/qml/dk/fionasoftware/mylib/. So I would suggest to create a directory-structure somewhere like somewhere/dk/fionasoftware/mylib, where mylib is a symbolic link to mylib/qml. Then you set QML_IMPORT_PATH = somwhere/dk/fionasoftware/mylib and it should find the QML stuff in mylib/qml if you import dk.fioniasoftware.mylib. But I didn't try it, just a guess. Good luck, Sven _______________________________________________ Qt-qml mailing list Qt-qml@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-qml