lqml/examples/planets
2022-03-07 12:51:52 +01:00
..
lisp add QML auto reload for mobile (example 'swank-server' only); several revisions 2022-03-05 22:13:21 +01:00
qml remove 'import Lisp 1.0' (obsolete) 2022-03-07 12:51:52 +01:00
.gitignore add item model example; revisions 2022-02-19 17:53:28 +01:00
app.asd add missing example file 2022-02-19 22:06:53 +01:00
readme.md add item model example; revisions 2022-02-19 17:53:28 +01:00

Prepare

Please copy the app template files first:

$ cd ..
$ ./copy.sh planets

Info

This shows how to populate a QML item model from Lisp.

The QML code is a modified version of an example found in the Qt6 QML book. The images are taken from the qt3d planets-qml example.

Run

lqml run.lisp

Optionally pass -slime to start a Swank server, and connect from Emacs with M-x slime-connect.

Closing the window quits the app. If you try to kill it with ctrl-c, you need an additional ctrl-d to exit from ECL. To quit from Slime, do (qq) which is short for (qquit).