signals and slots between multiple components
Text is not a good name for a custom component... It is reserved in QML
Problem to connect signals between elements
using a connections component solve this problem
skeleton for interactions between c++ and qml (in the 2 ways) :
 * signals and slots
 * properties modification of QML object in C++
Unlike in the other example, there will be a little C++ programming
Added simple signal.
You can see, that the signal is passing a number
added simple controller class. Note the #include main.moc !
complete signal slots bindings.
The setContextProperty needs to be done before setting the mainQmlFile, otherwise, strange errors will occur.
The bindings can't be done on the viewer but on an object of the QML document, this is why the take rootObject (in this case, the one that will throw some signals)
But to send cpp signals to QML, we don't need to connect them in the main.cpp.
We only add a 'connections' in the qml file
qml ibject properties modification in the cpp file
advanced property modifications (we have to use findChildren)
!!! Be carefull when using find children : if the child is not found (no or wrong objectName) their will be a Null pointer, and thus a segmentation fault !