C++ qml element

Merging test code which adds in C++ code for generating the PatternGrid QML Element