franšais

Source for dist/current/PerlQt/tutorials/t2/t2.pl

#!/usr/bin/perl -w
use strict;
use blib;
use Qt;

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

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

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

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





The use of a camel image with the topic of Perl is a trademark of O'Reilly & Associates, Inc. Used with permission.
The Qt logo (TM) is a registered trademark of Trolltech (TM) AS, Norway.