Basically we must register the c++ class as a QML module, the magic happens using the template function "qmlRegisterType".
We have a c++ class called "Randcalc" and we pass it as a type to this function:
This is it, ✨Magic ✨!!
Basically we must register the c++ class as a QML module, the magic happens using the template function "qmlRegisterType".
We have a c++ class called "Randcalc" and we pass it as a type to this function:
This is it, ✨Magic ✨!!