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
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.
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/