[Qt-qml] Unable to use external JS file with QML
Jack Wootton
jackwootton at gmail.com
Wed Apr 14 10:19:51 CEST 2010
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, <warwick.allison at nokia.com> 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
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
--
Regards
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100414/c3a9d66e/attachment.html
More information about the Qt-qml
mailing list