mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-25 11:21:08 -08:00
update docu of "painted-item" (module :quick)
This commit is contained in:
parent
6521e7f0a3
commit
fcf63fd14f
2 changed files with 16 additions and 1 deletions
|
|
@ -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*)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue