PerlQt
出自DebianWiki
[編輯] PerlQt
DebianPackages:libqt-perl 提供可於 Perl 命令稿中使用 Qt 的函式庫。可在 Perl 中以物件導向的方式使用 Qt 撰寫圖形化使用者介面。
簡單的程式可以是
#!/usr/bin/perl
use Qt;
my $a = Qt::Application(\@ARGV);
my $hello = Qt::PushButton("Hello World!", undef);
$hello->resize(160, 25);
$a->setMainWidget($hello);
$hello->show;
exit $a->exec;
搭配 DebianPackages:qt3-designer 以及 puic (DebianPackages:libqt-perl 工具之一,全名是 perl user interface compiler)設計使用者介面更可以事半功倍。
![[Main Page]](/upload/4/49/Debian_taiwan_out.png)