forked from likwueron/libqtlua_fork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
58 lines (41 loc) · 1.49 KB
/
README
File metadata and controls
58 lines (41 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
The QtLua library aims to make Qt4/Qt5 applications scriptable using
the Lua scripting language.
QtLua is released under the GNU LGPL v3 license.
Project documentation can be found online:(Original one)
http://www.nongnu.org/libqtlua/
This fork project provide some features:
- QFlag QtLua::Librarys which provide OR combination when using QtLua::State.openlib()
- Value of QObject (via print()) can be costum by slot "QString toString()"
- Register QObject can limit member access by setting "supreme meta object" which reject member access to it's super one
- Name of QObject can be costum by Q_CLASSINFO("LuaName", NAME_YOU_WANT)
- Can register static member method to registered QObject
Those are not neccessary because of QtLua::MetaType. They added because I didn't notice that class before.
- Methods can use QVariant/QVariantList as parameter or return value in script environment.
Those are once add but removed due to they'll cause crash in some situation:
- Methods can use QObject as parameter or return value without register via QtLua::MetaType
Build and install
=================
GNU autotools
-------------
cd libqtlua-x.x.x
mkdir bld
cd bld
../configure
make
make install
CMake
-----
cd libqtlua-x.x.x
mkdir bld
cd bld
cmake ..
make
make install
Windows CMake MinGW32
---------------------
OPEN Qt Command Prompt
set LUA_DIR=[location of lua]
cd libqtlua-x.x.x
cmake-gui
cd [where to build the binaries]
mingw32-make