Add simple method to register C++ Class to QML rootContext

A simple example to make QML communicate with C++