EQL5/examples/M-modules/quick/painted-item
2017-02-13 10:59:09 +01:00
..
lib revision of "quick" examples 2017-02-12 17:06:25 +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 revision of "quick" examples 2017-02-12 17:06:25 +01:00
qml-lisp.lisp revision of "quick" examples 2017-02-12 17:06:25 +01:00
README.txt add function QPROPERTIES* for QQuickItems (for QML defined properties); some revisions; 2017-02-13 10:59:09 +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 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
====

Use function QPROPERTIES* to list all user defined QML properties of an item.

Example:

    (qproperties* (qml:find-quick-item "left"))