summaryrefslogtreecommitdiffstats
path: root/PerlQt/tutorials/t3/t3.pl
blob: bdd27fdabe83f91e58c0a7e5120dbeedfde6dcc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
use strict;
use blib;
use Qt;

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

my $box = Qt::VBox;
$box->resize(200, 120);

my $quit = Qt::PushButton("Quit", $box);
$quit->setFont(Qt::Font("Times", 18, &Qt::Font::Bold));

$a->connect($quit, SIGNAL('clicked()'), SLOT('quit()'));

$a->setMainWidget($box);
$box->show;

exit $a->exec;