Perl is a powerful and versatile high-level programming language. You can find out more about the language itself on the Perl website.
Complete object-oriented bindings for Qt 3, based on SMOKE, are available on the PerlQt project page. Those bindings provide virtual functions overloading, custom slots and signals, and Rapid Application Development (RAD) through puic, a Qt Designer compatible user interface compiler.
The Qt 3 bindings have been ported to work with Qt 4, and is included with the kdebindings module for KDE SC 4.5. The rest of this document supplies information about these bindings.
use strict; use warnings; use QtCore4; use QtGui4;
my $app = Qt::Application( \@ARGV ); my $hello = Qt::Label( 'Hello, World!' ); $hello->show(); exit $app->exec();
The PerlQt4 API mimics PerlQt3 very closely. So if you have written using PerlQt3, the transition should be very easy.
PerlQt4 is modular, where one Perl module will load one Qt/KDE module. Modules currently exist for:
All Qt public and protected methods are supported, as well as friend methods.