Re: I've a interesting issue with PerlQt 3.008

Gary Greene <[email protected]>
Newsgroups gmane.comp.kde.devel.perl
Organization Ark Open Source Labs
Message-ID <[email protected]>
-----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 : [email protected]
============================================================
 
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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.