1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/perl -w use strict; use blib; use TQt; my $a = TQt::Application(\@ARGV); my $hello = TQt::PushButton("Hello World!", undef); $hello->resize(100, 30); $a->setMainWidget($hello); $hello->show; exit $a->exec;