[PyQt] Possible QTreeWidgetItem constructor bug

Glenn Ramsey gr at componic.co.nz
Mon Apr 16 03:46:54 BST 2012


If this QTreeWidgetItem constructor is called with a single string instead of a 
list of strings for the "strings" parameter, then on my system (Win 7, Python 
2.6.5, Qt 4.7.4, PyQt 4.8.5) it crashes the python interpreter.

QTreeWidgetItem.__init__ (self, QTreeWidget parent, QStringList strings, int 
type = QTreeWidgetItem.Type

Shouldn't that cause an Attribute error to be raised?

Glenn



More information about the PyQt mailing list