[PyQt] Strange behaviour QStringList

simozack simozack at yahoo.it
Wed Sep 16 12:42:39 BST 2009


2009/9/16 Giovanni Bajo <rasky at develer.com>:

> I can't see why you're surprised then... QStringList's constructor accepts
> a list of strings, not a list of lists.

I know that, but I'm perfoming a for loop on the list of lists... :)

By the way, if I pass a list of QString it has no problem. For example,

for task in TASKS: # TASKS is the list of lists
    task_list = QStringList([QString(t) for t in task])

works like a charm.

Thanks,
Simone


More information about the PyQt mailing list