File: t1.pl

package info (click to toggle)
libqt-perl 3.008-3.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,212 kB
  • ctags: 1,365
  • sloc: perl: 16,458; sh: 9,686; cpp: 6,711; makefile: 78
file content (13 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use strict;
use blib;
use Qt;

my $a = Qt::Application(\@ARGV);

my $hello = Qt::PushButton("Hello World!", undef);
$hello->resize(100, 30);

$a->setMainWidget($hello);
$hello->show;
exit $a->exec;