Changed default memory management model
[lqt/mk.git] / test / t1.lua
blobfa3b4dd91e7e6ea12ad00d99a39298e69cb6dcd6
1 #!/usr/bin/lua
3 require'qtcore'
4 require'qtgui'
6 app = QApplication(1 + select('#', ...), {arg[0], ...})
8 -- the conversion from Lua string to QString is automatic
9 hello = QPushButton.new("Hello World!")
10 -- but not the other way round
11 print(hello:text():toUtf8())
13 hello:resize(100, 30)
14 hello:show()
16 app.exec()