void luaQ_pushmeta(lua_State *L, int type)

Pushes the metatable associated with Qt variants of type type.

Argument type is an integer representing a QMetaType::Type, a QVariant::Type, or any type declared using the C++ macro Q_DECLARE_METATYPE The following expression can be used to push a metatable for type TYPE:

 luaQ_pushmeta(L, qMetaTypeId<TYPE>());

void luaQ_pushmeta(lua_State *L, const QMetaObject *mo)

void luaQ_pushmeta(lua_State *L, const QObject *o)

Pushes the metatable associated with Qt object o or with Qt objects whose class is represented by the metaobject mo. The following expression can be used to push a metatable for a Qt object class TYPE:

  luaQ_pushmeta(L, &TYPE::staticMetaObject);