my code example (C++ + Qt5 + QML)