Changed default memory management model
[lqt/mk.git] / test / t3.lua
blobeb49f0bfcdb26e0b27e872584bded1597a94569e
1 #!/usr/bin/lua
3 require'qtcore'
4 require'qtgui'
6 app = QApplication(1 + select('#', ...), {arg[0], ...})
8 window = QWidget()
9 window:resize(200, 120)
11 quit = QPushButton("Quit", window)
12 quit:setFont(QFont('Times', 18, 75))
13 quit:setGeometry(10, 40, 180, 40)
15 QObject.connect(quit, '2clicked()', app, '1quit()')
17 window:show()
19 app.exec()