Script { source: "a.js" }
works for me. Is this because of the "overlap" that's been mentioned or is
it because i'm using a version of Qt that doesn't implement the "import"
method?
I'm using 4.7.0 snapshot built form source, downloaded from
http://qt.nokia.com/developer/qt-qtcreator-prerelease#download
On Wed, Apr 14, 2010 at 6:13 AM, <[email protected]> wrote:
> > Did the older versions of QML support importing of js files that way
> > (import "a.js" as Misc)? I know the old { Script: a.js } way of
> > including js files doesn't work anymore, was that replaced with the
> > new way, or were both always an option?
>
> The import way replaced the Script{} way, with some overlap.
>
> --
> Warwick
>
> _______________________________________________
> Qt-qml mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
--
Regards
Jack
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml