How to call the C++ member function from the JScript
Hi,
We have a requirement in QT that i have C++ class contains data and member functions.
I will pass an object to Javascript function, i should be able to call any of the member functions from Javascript.
Please help me, i will really appreciate you.
Ex:
Code:
function Add(myObj) //myObj C++ object
{
this.myObj = myObj;
var a = display();
return a;
}
Regards
Srinivas
Re: How to call the C++ member function from the JScript
See QScriptable class and the Qt Script presentation from DevDays2007 (search for "Qt Script Prototype Objects").