Exemple #1
0
static int
qtuiloader_createLayout(lua_State *L)
{
  QUiLoader *loader = luaQ_checkqobject<QUiLoader>(L, 1);
  QString classname = luaQ_checkqvariant<QString>(L, 2);
  QObject *parent = luaQ_optqobject<QObject>(L, 3, 0);
  QString name = luaQ_optqvariant<QString>(L, 4, QString());
  luaQ_pushqt(L, loader->createLayout(classname, parent, name), !parent);
  return 1;
}