mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-08 03:20:30 -08:00
fix and improve "qml-lisp" example; allow nested QVariantLists (JS arrays in QML);
This commit is contained in:
parent
0e82b0a517
commit
03c7a5ded5
5 changed files with 27 additions and 10 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue