On Tue, Apr 13, 2010 at 10:14 AM, Matthias Ettrich
<[email protected]> wrote:
> On Tuesday 13 April 2010 12:56:29 ext Jack Wootton wrote:
>> Hello,
>>
>> It was recommended I post this question on
>> [email protected]<mailto:[email protected]> after first posting it
>> on Forum Nokia here:
>> http://discussion.forum.nokia.com/forum/showthread.php?p=724730
>>
>> QML documentation states that JavaScript can be integrated with QML:
>> http://doc.qt.nokia.com/4.7-snapshot/qdeclarativejavascript.html
>>
>> I've created a simple QML file (Test.qml) which imports an external
>> JavaScript file (a.js).
>>
> [...]
>
>>
>> The Application Ouput panel shows the error 'TypeError: Result of
>> expression 'Misc.doubleFloat' [undefined] is not a function'. The function
>> works fine if I inline it and remove the qualifier:
>>
>
>
> Hi,
>
> your code works just fine with today's Qt on Linux, i.e. you are not missing
> anything obvious.
>
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?
Colin
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml