Fix the virtuals generation and enable verbose build
[lqt/mk.git] / test / t4.lua
blob42a0d32460dda8ef3121be5843783ac720325184
1 #!/usr/bin/lua
3 require'qtcore'
4 require'qtgui'
6 local new_MyWidget = function(...)
7 local this = QWidget.new(...)
8 local quit = QPushButton.new('Quit', this)
9 this:setFixedSize(200, 120)
10 quit:setGeometry(62, 40, 75, 30)
11 quit:setFont(QFont('Times', 18, 75))
12 QObject.connect(quit, '2clicked()', QCoreApplication.instance(), '1quit()')
13 return this
14 end
16 app = QApplication(1 + select('#', ...), {arg[0], ...})
18 widget = new_MyWidget()
19 widget:show()
21 app.exec()