[Kde-perl] I've a interesting issue with PerlQt 3.008
Gary Greene
greeneg at arklinux.org
Tue Aug 17 03:54:57 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 16 August 2004 09:14 pm, Richard Dale wrote:
> On Tuesday 17 August 2004 01:36, Gary Greene wrote:
> > The script follows:
> > #!/usr/bin/perl
> > use Qt 2.0;
> > use Qt::app;
> >
> > $mylabel = new Qt::Label( "Hello world", 0 );
> > $mylabel->resize( 120, 30 );
> >
> > $app->setMainWidget( $mylabel );
> > $mylabel->show();
> >
> > exit $app->exec();
> >
> > Is the "use Qt 2.0;" line the culprit? I'll admit that I'm using Qt 3.3.3
> > with the bindings.
>
> Umm.. yes indeed
>
> > Any help is appreciated. Thanks.
>
> Please compare and contrast your code with this 'Hello World' tutorial
> PerlQt/tutorials/t1 in PerlQt 3.008:
>
> #!/usr/bin/perl -w
> use strict;
> use blib;
> use Qt;
>
> my $a = Qt::Application(\@ARGV);
>
> my $hello = Qt::PushButton("Hello World!", undef);
> $hello->resize(100, 30);
>
> $a->setMainWidget($hello);
> $hello->show;
> exit $a->exec;
>
> I assume you've copied a code snippet from the obsolete PerlQt 2.x
> bindings, otherwise where does the 'use Qt 2.0' come from?
>
> -- Richard
it would seem so.... Thanks much for both of your timely help. Thanks a
million.
- --
Gary L. Greene, Jr.
Sent from uriel.tolharadyne.net
21:54:05 up 1 day, 4:08, 4 users, load average: 0.04, 0.05, 0.01
============================================================
Developer for the Ark Linux Project
check out http://www.arklinux.org/ for more info.
Also http://www.csis.gvsu.edu/~greeneg/
EMAIL : greeneg at arklinux.com
============================================================
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
for more information.
Consider using a free MS-Office replacement for most platforms,
http://www.openoffice.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBIWVxynMfbISpaCwRAl0yAJ9dZ4oRnRg30cwPZz2NW81bBpVlZwCeM0ZN
AEdzKJGUYlgx2ivJEyo2hdQ=
=snAd
-----END PGP SIGNATURE-----
More information about the Kde-perl
mailing list