[PyQt] Bugs galore in QAbstractTableModel???

Wolfgang Rohdewald wolfgang at rohdewald.de
Sun Nov 28 14:18:17 GMT 2010


On Sonntag 28 November 2010, Steve Borho wrote:
> I found an updated version of the file here:
> 
> http://bazaar.launchpad.net/~bzr/ubuntu/maverick/qbzr/bzr-ppa/
> annotate/head:/lib/tests/modeltest.py

this still needs more updates. Mostly for editable models. Like 

-        c = insert.pop()
+        c = self.insert.pop()

or

-        assert(c['last'] == self.model.data(model.index(start-1, 0, c['parent'])))
+        assert(c['last'] == self.model.data(self.model.index(start-1, 0, c['parent'])))

also, the alignment test around line 289 seem to be too strict. Qt.alignLeft|Qt.alignTop
does actually align at top (try with a row containing a check box), so why should
it be invalid?

I am working on making my models bug free by using modeltest (although they do work
fine as they are) - when done I will publish my new modeltest.py

-- 
Wolfgang


More information about the PyQt mailing list