Use external javascript libraries in my qml canvas.
-
Now and then I find some nice javascript libraries like this one.
Since the qml canvas is so similar to the html canvas then it should be possible to use them in qml.
Is there any tutorial, example, or other recourse that discusses this matter?
-
Hi,
Is QtQml JavaScript imports what you are looking for ?
-
@ealione I doubt that it will work readily with QML. Javascript support in QML is very restricted as compared to that of Web-Browsers. It lacks of certain objects which are mostly used in these web-browsers supported Javascripts.
You can find more info here: -
Hi SGaist,
I did of curse know about importing and using simple javascript code in my qml tests. But what I was wondering was if it is possible to use the multitude of javascript libraries that are out there, mostly the impressive ones that deal with animations like the one I linked to.Thanks for the links p3c0, I believe that by studying them I may be able to port a javascript library to a qml compatible version.
4/4