|
QLua
Lua-Qt bindings
|
Utility functions for converting data types between Lua and Qt. More...
#include "lua.h"#include "lauxlib.h"#include "lualib.h"#include <iostream>#include <string>#include <QString>#include <QVariant>#include <QVariantMap>#include <QGenericArgument>#include <QList>#include <QVector>

Go to the source code of this file.
Namespaces | |
| namespace | qlua |
QLua namespace. | |
Functions | |
| QVariant | qlua::LuaValueToQVariant (lua_State *L, int idx) |
| template<typename T > | |
| QList< T > | qlua::ParseLuaTableAsNumberList (lua_State *L, int stackTableIndex) |
Create QList<T> from Lua table where T is int short float or double. | |
| QStringList | qlua::ParseLuaTableAsStringList (lua_State *L, int stackTableIndex) |
| Create QStringList from Lua table. | |
| template<typename T > | |
| QVector< T > | qlua::ParseLuaTableAsNumberVector (lua_State *L, int stackTableIndex) |
QVector<T> from Lua table where T is int short float or double. | |
| QVariantMap | qlua::ParseLuaTable (lua_State *L, int stackTableIndex, bool removeTable=true) |
| Create QVariantMap from Lua table. | |
| QVariantList | qlua::ParseLuaTableAsVariantList (lua_State *L, int stackTableIndex) |
| Create QVariantList from Lua table. | |
| void | qlua::VariantMapToLuaTable (const QVariantMap &vm, lua_State *L) |
| Create Lua table from QVariantMap and push it on the Lua stack. | |
| void | qlua::VariantListToLuaTable (const QVariantList &vl, lua_State *L) |
| Create Lua table from QVariantList and push it on the Lua stack. | |
| void | qlua::VariantToLuaValue (const QVariant &v, lua_State *L) |
| Create Lua value from QVariant and push it on the Lua stack. | |
| template<typename T > | |
| void | qlua::NumberListToLuaTable (const QList< T > &l, lua_State *L) |
| Create Lua table from QList<T> where T is a number and push it on the Lua stack. | |
| template<typename T > | |
| void | qlua::NumberVectorToLuaTable (const QVector< T > &v, lua_State *L) |
| Create Lua table from QVector<T> where T is a number and push it on the Lua stack. | |
| void | qlua::StringListToLuaTable (const QStringList &sl, lua_State *L) |
| Create Lua table from QStringList and push it on the Lua stack. | |
Utility functions for converting data types between Lua and Qt.
1.7.4