EQL5/examples/M-modules/quick/painted-item
2017-02-17 14:27:20 +01:00
..
lib small revisions 2017-02-17 14:27:20 +01:00
qml revision of "quick" examples 2017-02-12 17:06:25 +01:00
clock.lisp "quick": update "painted-item" example; tiny revisions; 2017-02-09 12:48:32 +01:00
painted-item.lisp "quick": add properties dialog to every example, see SHOW-PROPERTIES-DIALOG 2017-02-14 11:05:55 +01:00
properties.lisp revisions of "quick" examples docu 2017-02-17 10:16:30 +01:00
qml-lisp.lisp revision of "quick" examples 2017-02-12 17:06:25 +01:00
README.txt revisions of "quick" examples docu 2017-02-17 10:16:30 +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.


NOTES
=====

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

You need to tell QML-SET to call |update| after any change to data which
QML:PAINT depends on.
Only in this exceptional case there is no way to do it implicitly using QML.

Examples:

    ;; pass T as last argument for repainting

    (qml-set "left" "color" "transparent" t)
    
    (qml-set "right" "ellipse" '(40 40 20 20) t)


HELP
====

To display the output of QPROPERTIES*, run

    (show-properties-dialog) ; see "properties.lisp"

and use [Select] to explore the single QML items.