int luaQ_pcall(lua_State *L, int na, int nr, int eh, QObject *obj = 0)

int luaQ_pcall(lua_State *L, int na, int nr, int eh, int oh)

Performs a Lua function call like lua_pcall but ensures that the function is executed in the thread owning the Qt object obj or the Qt object at position oh on the stack. Argument eh is an event handler that will be executed in the target thread if an error occurs during the execution of the function.

This function is the basis for all thread hopping operations in the QtLua interface.