Can I write short article "How to use underscore.js in Qt Quick"?
-
Hi!
I need to use underscore.js in my project, but it doesn't work with simple:
@import "underscore.js" as Underscore@
because of "immutable root object":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-javascript-hostenvironment.html#javascript-environment-restrictionsI found tricky way to make it work, but it gives:
@QML ApplicationWindow: Binding loop detected for property "_"@
and requires changes (5-10 lines) in underscore.js.Can I write article or I shouldn't since my approach is dirty?
-
Wiki is open to everybody, go ahead if you feel like it.
-
I posted my solution:
http://qt-project.org/wiki/Qt_Quick_Underscore.js -
Cool, thanks :-)