EQL5/examples/M-modules/quick/painted-item
2017-02-10 00:25:32 +01:00
..
lib "quick": update "painted-item" example; tiny revisions; 2017-02-09 12:48:32 +01:00
qml "quick": update "painted-item" example; tiny revisions; 2017-02-09 12:48:32 +01:00
clock.lisp "quick": update "painted-item" example; tiny revisions; 2017-02-09 12:48:32 +01:00
painted-item.lisp update docu of "painted-item" (module :quick) 2017-02-10 00:25:32 +01:00
qml-lisp.lisp "quick": return specific class in function CHILDREN (not just QQuickItem) 2017-02-08 22:50:40 +01:00
README.txt update docu of "painted-item" (module :quick) 2017-02-10 00:25:32 +01:00

INFO
====

This is an alternative to 'Canvas' in QML, using a QQuickPaintedItem,
which means using QPainter from Lisp (instead of JS in QML).


RUN
===

Run "painted-item.lisp" from this directory.


NOTE
====

Use QQuickWidget here, because QQuickView would crash (e.g. on Windows).

You need to explicitly call 'update' after any change to paint dependent data.
In this case, that is, doing the painting directly, there is no way to detect
it automatically.

Example:

  (defparameter *item* (first (children (root-item))))
  (qml-set *item* "fillColor" "yellow")
  (|update| *item*)