04 Feb 2008 18:22:52 UTC
- Distribution: QtGui
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (0 / 23 / 13)
- KwaliteeBus factor: 0
- % Coverage
- License: open_source
- Perl: v5.8.0
- Activity24 month
- Download (59.45KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionVADIML Vadim Likhota (Вадим Лихота)and 1 contributors
- Vadim Likhota
QtGui is a library for working with Qt4 QtGui in Perl.
use Qt::QString; use Qt::QApplication; use Qt::QPushButton; unshift @ARGV, 'tutorial_1'; my $app = QApplication(\@ARGV); my $hello = QPushButton(QString("Hello world!")); $hello->resize(100,30); $hello->show(); $app->exec(); # See other instances in examples directory.
Creating this library we aimed to use the Perl functionality as much as possible, but to make the syntax similar to C++ Qt4. This allows to use the original Qt4 documentation. All the list classes (QVector,QList) are replaced by the Perl arrays. All the associated arrays (QMap,QHash,QPair) are replaced by Perl hashes. The classes of modules are completely coincide with the corresponding ones of C++ Qt4. One can use all the protected functions from the object classes (QObject children) except of those that use *Private classes as input parameter.
It's advisable to study the examples attached before writing programs.
None by default.
Qt Reference Documentation http://doc.trolltech.com/
Vadim Likhota, <firstname.lastname@example.org>
Copyright (C) 2007-2008 by Vadim Likhota
This library is free software; you can redistribute Perl/Qt4 modules under the GPL2 or any other Qt4 licencies.