Managed to pass tree data from C++ to QML