Re: [PyQt] subclassing QSqlTableModel

2011-09-23 Thread Pavel Brych
Hi Paolo, you must return your flags like this: def flags(self, index): return QSqlTableModel.flags(self, index) Otherwise your method returns None. Pavel Dne 23.9.2011 13:28, pa...@paolodestefani.it napsal(a): > I'm using python 3.2 and pyqt 4.8.5 on windows 7 32bit > I'm trying t

[PyQt] subclassing QSqlTableModel

2011-09-23 Thread paolo
I'm using python 3.2 and pyqt 4.8.5 on windows 7 32bit I'm trying to understand how subclassing QSqlTableModel works and i don't understand why this code fail: class StaffModel(QSqlTableModel): def __init__(self, parent): QSqlTableModel.__init__(self, parent) self.setTable("sta