From fcf63fd14f176f35f5febeafdcd48ee4e1e12889 Mon Sep 17 00:00:00 2001 From: polos Date: Fri, 10 Feb 2017 00:25:32 +0100 Subject: [PATCH] update docu of "painted-item" (module :quick) --- examples/M-modules/quick/painted-item/README.txt | 11 +++++++++++ .../M-modules/quick/painted-item/painted-item.lisp | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/examples/M-modules/quick/painted-item/README.txt b/examples/M-modules/quick/painted-item/README.txt index 1a7d2b4..088c099 100644 --- a/examples/M-modules/quick/painted-item/README.txt +++ b/examples/M-modules/quick/painted-item/README.txt @@ -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*) + diff --git a/examples/M-modules/quick/painted-item/painted-item.lisp b/examples/M-modules/quick/painted-item/painted-item.lisp index 6ffd5f4..7de8ae8 100644 --- a/examples/M-modules/quick/painted-item/painted-item.lisp +++ b/examples/M-modules/quick/painted-item/painted-item.lisp @@ -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"))