repo.or.cz
/
lqt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
indent the base list
[lqt.git]
/
test
/
t1.lua
blob
6d12052c924f0abf8015c6dd8e8cf19acbe32f57
1
#!/
usr
/
bin
/
lua
2
3
require
'qtcore'
4
require
'qtgui'
5
6
app
=
QApplication
.
new
(
1
+
select
(
'#'
, ...), {
arg
[
0
], ...})
7
app
.
__gc
=
app
.
delete
-- take ownership of object
8
9
hello
=
QPushButton
.
new
(
QString
.
new
(
"Hello World!"
))
10
hello
:
resize
(
100
,
30
)
11
12
hello
:
show
()
13
14
app
.
exec
()
15
16