Kakadu / lablqml

Interfacing Qt/QML with OCaml. Formely known as lablqt
http://kakadu.github.io/lablqml
GNU Lesser General Public License v2.1
159 stars 17 forks source link

Think about gadgets #39

Open Kakadu opened 7 years ago

Kakadu commented 7 years ago

It seems that we can pass values to QML which are not QObject's (i.e. are not pointers) but they are values. It should be more safe to use them without memory leaking

https://doc.qt.io/qt-5/qobject.html#Q_GADGET https://habrahabr.ru/post/307816/

ghost commented 7 years ago

This would be really handy indeed, even with the random name "Gadget". Note that it doesn't provide signals or slots, so we wouldn't be able to bind callbacks to it.