If it is a qmake project, set QML_IMPORT_PATH in the .pro file to add paths to 
Creator's code model.

Cheers,
Christian

________________________________________
From: [email protected] 
[[email protected]] on behalf of ext Bo 
Thorsen [[email protected]]
Sent: Thursday, March 08, 2012 11:04 PM
To: [email protected]
Subject: [Qt-qml] Adding QML components dirs

Hi people,

I'm working on a project, where I have QML files in several directories.
This isn't a problem at runtime, because they're all copied to the same
qml dir.

But in QtC, I get the red error line under the components from other
dirs, and no completion.

I seem to remember that there is a way I can add dirs to the QML parser
to complete from, but I can't find it anymore. Anyone here have a good idea?

The setup is that I have a library that's shared between different
projects, and some of the files in this library are QML files, some are
C++. The C++ code isn't a problem, of course, but the QML files are
annoying.

Using svn externals directly on the file would put them in the same qml
dir as the files specific to the other projects, but that's a
maintenance nightmare.

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
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to