06-23-2012 11:46 AM
Hey everyone! Making my first application using Cascades and was wondering, is it best to handle events in qml or link it to the C++? I know they can be handled in either separately or using signals and slots link together, is one preferrable? I know QML is best for the UI and then maybe the c++ should handle the logic such as the event conditions etc?
Is this the ideal way of approaching this and if so, is there documentation on connecting the QML to the C++ for events? I'm pouring through it now, but so far I can just find signal and slot documentation on either all QML or C++ but not in this fashion. As always thanks guys and any input would be great help
06-23-2012 02:19 PM
JS vs C++
However, it really can vary however you want.
"Connecting" QML to C++
There's quite a lot of documentation on signals, properties and slots in QML - and tying them into C++ objects - in the QML Signals and Handler Event System section of the Qt docs.