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
added software versions list
[lqt.git]
/
test
/
t2.lua
blob
15dc0ef9b7cffa25754b700a3cfa6278b2f591d7
1
#!/
usr
/
bin
/
lua
2
3
require
'qtgui'
4
5
app
=
QApplication
.
new
(
select
(
'#'
, ...), {...})
6
7
quit
=
QPushButton
.
new
(
QString
.
new
(
"Quit"
))
8
quit
:
resize
(
75
,
30
)
9
quit
:
setFont
(
QFont
.
new
(
QString
.
new
'Times'
,
18
,
75
))
10
11
QObject
.
connect
(
quit
,
'2clicked()'
,
app
,
'1quit()'
)
12
13
quit
:
show
()
14
15
app
.
exec
()
16
17