Proof of concept QML <-> C++ interaction, refactoring