Make it work. Change model of interaction betven cpp and QML. Some
rafaction and bugfixes.