some revisions

This commit is contained in:
pls.153 2022-02-28 14:10:20 +01:00
parent f52c1ec594
commit 6df25f4c05
4 changed files with 23 additions and 19 deletions

View file

@ -4,8 +4,9 @@ QML Preview and Slime
(LQML >= 22.2.2, see `lqml -v`)
If you want to be impressed (I certainly was when I first tried it), do the
following:
This shows how to use **QML Preview** (live QML updates while you are typing).
First you need to apply 2 small changes:
* edit `lisp/main.lisp` of an example, and add this line at the end:
```
@ -16,18 +17,20 @@ following:
```
DEFINES += INI_LISP SWANK
```
* open `app.pro` in **Qt Creator**, and in 'Build Settings' choose `build/`
from the example as 'Build directory'
* open `app.pro` in **Qt Creator**; under 'Projects' (menu on the left) /
'Configure Project' choose 'Debug' and change the 'Build directory' to
`build/` from the example
* in the 'Edit' view of Qt Creator choose 'Build / QML Preview' (after a
'Build / Clean')
* in the 'Edit' view of Qt Creator make sure that 'Debug' is selected (menu on
the left, near the bottom); from the menu at the top choose 'Build / **QML
Preview**' (after a 'Build / Clean')
Now the example should compile and start. You may now select any QML file from
the tree view on the left, and any change to QML will be shown immediately in
the running app, while you are typing!
the running app.
Additionally you may now also run `M-x slime-connect` from Emacs (the Swank
server should already be running, see 'Application Ouput' at the bottom of Qt
Additionally you may also run `M-x slime-connect` from Emacs (the Swank server
should already be running, see 'Application Ouput' at the bottom of Qt
Creator).
[Screenshot](screenshots/qml-live-preview-and-slime.jpg)