Languages/Perl: Difference between revisions
(Added category Perl) |
No edit summary |
||
Line 1: | Line 1: | ||
Perl is a powerful and versatile high-level programming language. You can find out more about the language itself on the [http://www.perl.org/ Perl | Perl is a powerful and versatile high-level programming language. You can find out more about the language itself on the [http://www.perl.org/ Perl website]. | ||
= Qt 3 = | |||
Complete object-oriented bindings for Qt 3, based on [[Development/Languages/Smoke|SMOKE]], are available on the [http://perlqt.sourceforge.net/ 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. | |||
= Qt 4 = | |||
== SMOKE based bindings == | |||
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. | |||
== Non-SMOKE bindings == | |||
You can read more about [http://qt-apps.org/content/show.php/Perl+Qt4?content=69748 Perl bindings for Qt 4] and [http://klv.lg.ua/~vadim/perlqt4/ download Perl Qt4]. | You can read more about [http://qt-apps.org/content/show.php/Perl+Qt4?content=69748 Perl bindings for Qt 4] and [http://klv.lg.ua/~vadim/perlqt4/ download Perl Qt4]. | ||
= Hello PerlQt4 = | |||
<code perl> | |||
#!/usr/bin/perl | |||
use strict; | |||
use warnings; | |||
use QtCore4; | |||
use QtGui4; | |||
my $app = Qt::Application( \@ARGV ); | |||
my $hello = Qt::Label( 'Hello, World!' ); | |||
$hello->show(); | |||
exit $app->exec(); | |||
</code> | |||
= API Overview = | |||
The PerlQt4 API mimics PerlQt3 very closely. So if you have written using PerlQt3, the transition should be very easy. | |||
== Coverage == | |||
PerlQt4 is modular, where one Perl module will load one Qt/KDE module. Modules currently exist for: | |||
=== Qt === | |||
* QtCore | |||
* QtGui | |||
* QtTest | |||
=== KDE === | |||
* KDECore | |||
* KDEUi | |||
* KIO | |||
* Plasma | |||
== Available methods == | |||
All Qt public and protected methods are supported, as well as friend methods. | |||
[[Category:Perl]] | [[Category:Perl]] |
Revision as of 00:28, 19 June 2010
Perl is a powerful and versatile high-level programming language. You can find out more about the language itself on the Perl website.
Qt 3
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.
Qt 4
SMOKE based bindings
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.
Non-SMOKE bindings
You can read more about Perl bindings for Qt 4 and download Perl Qt4.
Hello PerlQt4
- !/usr/bin/perl
use strict;
use warnings;
use QtCore4;
use QtGui4;
my $app = Qt::Application( \@ARGV );
my $hello = Qt::Label( 'Hello, World!' );
$hello->show();
exit $app->exec();
API Overview
The PerlQt4 API mimics PerlQt3 very closely. So if you have written using PerlQt3, the transition should be very easy.
Coverage
PerlQt4 is modular, where one Perl module will load one Qt/KDE module. Modules currently exist for:
Qt
- QtCore
- QtGui
- QtTest
KDE
- KDECore
- KDEUi
- KIO
- Plasma
Available methods
All Qt public and protected methods are supported, as well as friend methods.