void luaQ_register(lua_State *L, const luaL_Reg *l, QObject *obj)

Registers C or C++ functins that must run in the thread of Qt object obj. This function is similar to luaL_register. It creates entries in the table located on top of the stack for the C or C++ functions specified by the array pointed by argument l. When a Lua program calls these functions, execution always happens in the thread associated with object obj using thread hopping.

As a special case, when obj is null, the declared functions are always invoked in the thread associated with their first argument which is assumed to be a Qt object.