[PyQt] Strange behaviour QStringList

simozack simozack at yahoo.it
Wed Sep 16 10:47:43 BST 2009

Problably the problem is between the desk and the chair, but I have this case:

>>> for task in TASKS:
...             print type(task)
...             task_list = QStringList(task)
<type 'list'>
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
TypeError: argument 1 of QStringList() has an invalid type
>>> a = QStringList(['a', 'b', 'c'])
>>> a
<PyQt4.QtCore.QStringList object at 0x00997BB8>

Where TASKS is a list of list.

PyQt 4.4.4, Qt 4.4.2, Python 2.6.2 and WinXP SP3.


More information about the PyQt mailing list