[email protected] wrote:
> How can I tell Creator where to find components? I have the
> following in QML file untitled.qml:
>
> import Qt 4.7
> import org.my 0.0
>
> Item {
> Bar { text: "myBar" }
> }
>
> and directory ./org/my contains files Bar.qml and qmldir. If
> I add "-I ." to QML runtime arguments in the Run Settings,
> the QML viewer finds the component. But if I try to edit
> untitled.qml in the designer, it complains "module org.my is not
> installed".
You need a .qmlproject file. Add your paths there to the importPaths property.
i.e.
--
import QmlProject 1.0
Project {
importPaths: [ "../path" ]
}
--
The import paths you define here should be picked up by the text editor, visual
editor, and qml runtime (it shouldn't be necessary to add it manually to the
qml runtime arguments any more).
Regards
Kai
--
Kai K?hne
Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Gesch?ftsf?hrer: Dr. Michael Halbherr, Karim T?htivuori
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml