[Python-modules-team] Bug#636777: QtGui.QTreeWidget column sorting buged
René Wunderlich
rene.wunderlich at milaro.net
Fri Aug 5 20:12:17 UTC 2011
Package: python-sip
Version: 4.12.3-1
Severity: normal
hi,
after upgrading from python-sip_4.12.1-1+b2 to 4.12.3-1 is the QtGui.QTreeWidget column sorting buged
it print only errors and sort not
TypeError: expected 1 arguments, got 0
this is a other bug report from Baz Walter
http://permalink.gmane.org/gmane.comp.python.pyqt-pykde/22591
and now a example
ps: i add self.setSortingEnabled( True )
ps2: downgrade to python-sip_4.12.1-1+b2_amd64.deb remove the bug
------
import sys
from PyQt4 import QtCore, QtGui
class Window(QtGui.QTreeWidget):
def __init__(self):
QtGui.QTreeWidget.__init__(self)
self.setSortingEnabled( True )
for num in range(5):
QtGui.QTreeWidgetItem(
self, QtCore.QStringList('Item(%i)' % num))
self.sortByColumn(0, QtCore.Qt.AscendingOrder)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
win = Window()
win.show()
sys.exit(app.exec_())
--------
thanks
René
More information about the Python-modules-team
mailing list