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

Ashley Winters jahqueel at yahoo.com
Sat Mar 13 08:22:25 CET 2004


--- 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

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'

Cheers!
Ashley Winters

> I'm trying to pass in a list of strings into the listBox.
> 
> 
> According to TrollTech:
> void QListBox::insertStringList ( const QStringList & list, int index
> = -1 )


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com


More information about the Kde-perl mailing list