/cppToQml

The power off QML

Primary LanguageQML

Cpp To QML

A simple form to integrate c++ and qml

Build Status

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:

qmlRegisterType("com.company.randcalc",1,0,"Randcalc");

This is it, ✨Magic ✨!!