8000 GitHub - MTK358/lqt: Lua bindings for Qt4 by Mauro Iazzi
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MTK358/lqt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A (currently partially working) rewrite of the generator code for lqt.

Building lqt

Run these commands:

mkdir build
cd build
cmake ..
make

After running these commands, the finished modules should be available in build/lib.

Usage

local Qt = require 'QtCore'

local app = Qt.QCoreApplication(arg)

local str = Qt.QString.number(15)
print(str:toLuaUtf8())

local p = Qt.QPoint()
p:setX(5)
print(p:x(), p:y())

local t = Qt.QTimer()
t:setSingleShot(true)
t:setInterval(10000)
t:connect('2timeout()', function () print 'timeout' end)
t:start()

app.exec()

About

Lua bindings for Qt4 by Mauro Iazzi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.9%
  • Lua 13.1%
  • C 7.4%
  • Other 0.6%
0