PieceUnit created with definition in qml and in C++. Not compiling, but pull request created to be able to review the mistakes