PDA

View Full Version : Displaying the return value of CPP functions in QML



in_dbasu
25th May 2012, 13:32
I am creating a RADIO gui in QML. I have defined functions in the CPP file for NEXT and PREV buttons. Could you please tell me how the return value of these functionscould be printed in the Text part of the Display item. As in how how do I not only call the return value but print it in another ITEM.


Please help.

Le_B
26th May 2012, 16:27
your function must Q_INVOKABLE and just put text:CObject.function() in your object
the return value must be of type QString