PDA

View Full Version : Pass by reference in QtScript



songyu_us
14th July 2009, 17:59
Does anyone know if I can pass a parameter by reference in QtScript? For example,


var nTimeOut = 0;
app.getTimeOut(nTimeOut);
if (nTimeOut > 0)
{
...
}

here app is an c++ object that I exposed to Qt script environment and I am trying to change the value of nTimeOut in the c++ side and want to catch the changed value from the script side.

Thank you in advance.