update docu of "painted-item" (module :quick)

This commit is contained in:
polos 2017-02-10 00:25:32 +01:00
parent 6521e7f0a3
commit fcf63fd14f
2 changed files with 16 additions and 1 deletions

View file

@ -15,3 +15,14 @@ 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*)

View file

@ -1,4 +1,8 @@
;;; QQuickView loading Lisp enabled QML
;;;
;;; Use of PaintedItem (a QQuickPaintedItem) and QPainter
;;;
;;; (meant as an alternative to Canvas in QML)
;;;
#-qt-wrapper-functions ; see README-OPTIONAL.txt
(load (in-home "src/lisp/all-wrappers"))