It looks like you're just experimenting and learning but I thought I would point out in case you don't know that: QML is automatically aware of Qt C++ slots so you could eliminate the QML signal, the QObject::connect statement (not to mention the curly braces in your onclicked handler). Your QML would just call the slot directly:

@onClicked: myObj.cppSlot("Your message here.")@

Check out my third course in the trilogy on Qt
"Integrating Qt Quick with C++"http://bit.ly/qtquickcpp
published by Pluralsight