allow classes with private destructors
[lqt.git] / test / t2.lua
blob44ca441d51ac455feb21012ef8e0f7d28516ad2e
1 #!/usr/bin/lua
3 require'qtcore'
4 require'qtgui'
6 app = QApplication.new(1 + select('#', ...), {arg[0], ...})
7 app.__gc = app.delete -- take ownership of object
9 quit = QPushButton.new(QString.new("Quit"))
10 quit:resize(75, 30)
11 quit:setFont(QFont.new(QString.new'Times', 18, 75))
13 QObject.connect(quit, '2clicked()', app, '1quit()')
15 quit:show()
17 app.exec()