void QtLuaEngine::nameObject(QObject *obj, QString name = QString())
QObject* QtLuaEngine::namedObject(QString name)
QList
These functions can be used to make a Qt object
accessible by name in package qt
by Lua programs.
Function nameObject
sets the object's name
and declare the object accessible in package qt
.
Function namedObject
retrieved an accessible object
by its name. Function allNamedObjects
return
all accessible objects. An accessible object
is always accessed using its object name,
even if one uses QObject::setObjectName
to changed
it after calling nameObject
.
void QtLuaEngine::registerMetaObject(const QMetaObject *mo)
This function declare the Qt class identified by the metaclass mo
to the QtLua system. This usually happens automatically when
an object of that class is passed to QtLua for the first time.
In rare case, it may be necessary to call this function
to ensure that the types of slot and signal arguments are
properly recognized as an object class.