07-12-2013 07:59 AM
i can communicate to c++ from js using navigator.cascades.postMessage . i need to call vice versa.
i.e. c++ to js now.
Solved! Go to Solution.
07-12-2013 08:07 AM
07-15-2013 01:33 AM
07-15-2013 09:18 AM
1. import .js file im QML.
2. create one function in QML and call java script function from QMLfunctuion.
3. emit signal from CPP in every 5 seconds and connect that signal to function in QML from whare you calling java script function.
4. it will call indirectly java script function.
07-16-2013 08:26 AM - edited 07-17-2013 02:58 AM
How to emit a signal from c++ and receive it in qml. i tried it but was unable to get it.
I did the following.
created a signal
signals: void emitJsCall(QString);
// wrote my stuff
emit emitJsCall(param); // throws an exception Object::connect: No such signal ApplicationUI::emitJsCall (param) in ../
My call goes to jsvascript but all the functions are not working, like alert , window ... How to make then work here ??