fix and improve "qml-lisp" example; allow nested QVariantLists (JS arrays in QML);

This commit is contained in:
polos 2017-01-17 10:13:45 +01:00
parent 0e82b0a517
commit 03c7a5ded5
5 changed files with 27 additions and 10 deletions

View file

@ -5,8 +5,12 @@ Item {
id: root
Component.onCompleted: {
console.log(Lisp.apply("format", [null, "~R", 123])) // call CL function
Lisp.apply("qmsg", ["hello from QML"]) // call EQL function
console.log(Lisp.apply("format", [null, "~R", 123])) // (1) call CL function
console.log(Lisp.apply("x:join", [["11", "55"], ":"])) // (2) nested arrays are possible
Lisp.apply("qmsg", ["hello from QML"]) // (3) call EQL function
}
Text {
@ -15,4 +19,3 @@ Item {
text: "Lisp enabled QML"
}
}