On 7/22/2010 4:17 PM, ext Jan Ekholm wrote: > > Hi, > > I have a small stupid, dumb project that I haven't worked on for a few weeks. > When I last touched it at the end of June all worked fine and there were no > issues. Now, all my import statements in my QML files fail. The files have > imports like: > > import Qt 4.7 > import "Buttons.qml" > import "Map.qml" > ... > > Each of my own QML file gives errors like: > > file:///home/chakie/prog/c++/tactics/qml/Tactics.qml:3:1: "Buttons.qml": no > such directory > import "Buttons.qml" > > Changing the import order gives similar errors for all other files. So > something has changed and I can't find any mention about it in the docs, > blogs, this mailing list or IRC. It's a tiny bit worrying to have perfectly > fine code bit rot into oblivion in just some weeks. This did work fine in > June.
There was an e-mail some time ago that this 'feature' (which is just a bug) has been fixed. The warning message tells you exactly what the problem is: import "X" is for importing a directory, not an individual file. You can just remove the offending import statements, they're of no use: All files in the same directory can be used directly. Kai -- Kai Koehne Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B 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
