[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] howto handle QVariant.toList()?
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2006-06-29 8:21:32
Message-ID: 20060629082132.GC6008 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 29.06.06 08:50:35, Phil Thompson wrote:
> On Wednesday 28 June 2006 11:49 pm, Andreas Pakulat wrote:
> > Hi,
> >
> > I'm facing an issue here where I have a QStringList stored in a
> > QVariant, which means I have a QVariant whose toList function returns a
> > list of QVariants with all wrap QStrings.
> >
> > The question is: How can I easily pass this list to a function which
> > expects a QStringList? I don't really think that
> >
> > combobox.addItems([QVariant(item) for item in variant.toList()])
> >
> > is the nicest way, even if it looks quite "cool".
> 
> variant.toStringList() ???

Sorry, missed that one in the docs...

Thanks
Andreas

-- 
You are wise, witty, and wonderful, but you spend too much time reading
this sort of trash.

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic