[Qt-qml] Changes to how QML files can import other QML files?
warwick.allison at nokia.com
warwick.allison at nokia.com
Fri Jul 23 00:30:46 CEST 2010
> Aha, that does make things better. Thanks for the tip, Kai! For .js
> files the old syntax is however still in use, as I have things like:
It was never a syntax. It never did anything for .qml files (the type was available anyway since the file was in the same dir). All that was fixed was adding the error message.
> import "MapUtils.js" as MapUtils
This is a different concept altogether - it's the way JavaScript modules (as opposed to QML types) are imported with a namespace. It remains valid and works.
--
Warwick
More information about the Qt-qml
mailing list