mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-10 20:30:48 -08:00
| .. | ||
| lib | ||
| qml | ||
| eql5.js | ||
| example.lisp | ||
| qml-lisp.lisp | ||
| README.txt | ||
A trivial example of calling Lisp functions from QML.
RUN
===
Please run it from this directory.
For Emacs/Slime, this would be:
eql5 ~/slime/eql-start-swank.lisp example
GET/SET QML OBJECT PROPERTIES
=============================
You can access any QML property from Lisp (needs 'objectName' to be set).
Examples:
(in-package :qml)
(qml-get "label" "text")
(qml-set "label" "color" "red")
(qml-set "label" "font.pixelSize" 24)
NOTES
=====
Please see also the documentation in "qml/example.qml".
TIP
===
In order to have uniform access to QML objects from both JS and Lisp
functions, it is convenient to set both 'id:' and 'objectName:' to the
same name.
QML Example:
Item {
id: myItem
objectName: "myItem"
}