[Kde-perl] Cannot handle 'const QStrList*' as argument to QListBox

Jake Hawkes jake at infinitylimited.net
Sat Mar 13 08:55:17 CET 2004


On March 13, 2004 00:22, Ashley Winters wrote:
> --- Jake Hawkes <jake at infinitylimited.net> wrote:
> > I run this, and I get:
> > Cannot handle 'const QStrList*' as argument to
> > QListBox::insertStrList
> > at /usr/lib/perl5/site_perl/5.8.0/i686-linux/Qt.pm line 445,
>
> That indicates an old version of PerlQt. What version are you running?
>
> perl -MQt -le 'print $Qt::VERSION'
> 3.008

yep - thats the one.

> And insertStrList works with that version:
>
> perl -MQt -e '$a = Qt::Application \@ARGV; $lb = Qt::ListBox;
> $lb->insertStrList(["Version $Qt::VERSION", qw(foo bar baz)]);
> setMainWidget $a $lb; show $lb; $a->exec'

this works for me too.  Chances are I'm passing in the wrong arg.  




More information about the Kde-perl mailing list