Ah, no
It seems your test code missed
Qt Code:
QScriptValue oFnStart = m_oEngine.evaluate( "OnStart" ); oFnStart.call();To copy to clipboard, switch view to plain text mode
After this is added, code start crashing again in same place.
Ah, no
It seems your test code missed
Qt Code:
QScriptValue oFnStart = m_oEngine.evaluate( "OnStart" ); oFnStart.call();To copy to clipboard, switch view to plain text mode
After this is added, code start crashing again in same place.
There is no "oFnStart" object in our test program. Could you add it there and post the code again? Please include the code of the evaluated script and the result of QScriptValue::isFunction().
By the way, to correct what has been said earlier:
RunningQt Code:
public: // ... private: QScriptEngine engine; };To copy to clipboard, switch view to plain text modewill not move the "engine" object to the target thread. "engine" is a member and not a child of the "o" object.Qt Code:
Object *o = new Object; o->moveToThread(...);To copy to clipboard, switch view to plain text mode
Last edited by wysota; 19th January 2010 at 13:48.
Bookmarks