[PyQt] bug in latest sip release

Baz Walter bazwal at ftml.net
Sat Jun 18 16:58:43 BST 2011

after recently upgrading sip, several applications that use treeviews 
started producing a lot of errors like this:

     TypeError: expected 1 arguments, got 0

this is using: python 2.7.2, qt 4.7.3, sip 4.12.3, pyqt 4.8.4

the following test case demonstrates the problem:

import sys
from PyQt4 import QtCore, QtGui

class Window(QtGui.QTreeWidget):
     def __init__(self):
         for num in range(5):
                 self, QtCore.QStringList('Item(%i)' % num))
         self.sortByColumn(0, QtCore.Qt.AscendingOrder)

if __name__ == "__main__":
     app = QtGui.QApplication(sys.argv)
     win = Window()

More information about the PyQt mailing list