the common files were not found on first build
[lqt.git] / test / virt_test.lua
blob1bc391eeac1843952c502bb02ad82117f89bdfb6
1 #!/usr/bin/lua
3 require'qtcore'
5 qa = QCoreApplication.new(1, {'virt_test'})
7 qo = QObject.new()
8 qo.event = function(o, e) print('event overload called', e:type()) end
9 qo.childEvent = function(o, e) print('child event overload called', e:type()) end
11 ql = {}
13 for i = 1, 5 do
14 table.insert(ql, qo:new())
15 end
17 qo.event = nil
19 for i, o in ipairs(ql) do
20 o:delete()
21 end