void luaQ_pushqt(lua_State *L)
Pushes the table corresponding to the package qt
.
void luaQ_pushqt(lua_State *L, const QVariant &var)
Pushes a representation of the
Qt variant var
onto the Lua stack.
Numeric types are automatically converted to Lua numbers.
String types are automatically converted to Lua strings.
void luaQ_pushqt(lua_State *L, QObject *obj, bool owned=false)
Pushes a representation of the
Qt object obj
onto the Lua stack.
By default, objects are not owned by Lua
and therefore are not automatically deleted
by the Lua garbage collector.
To make an object owned by Lua, the optional flag owned
should be set to true
when calling function luaQ_pushqt
immediately after creating the C++ object.