[PyQt] overriding QSqlRelationalTableModel's data method

Phil Thompson phil at riverbankcomputing.com
Sat Apr 3 01:24:49 BST 2010

On Fri, 2 Apr 2010 17:05:15 -0700, Scott Frankel <frankel at circlesfx.com>
> Is it possible to override the data() method of a  
> QSqlRelationalTableModel?


> In my attempts so far, my model instance  
> isn't calling its data() method.  (See attached.)

Because you've added a data() method to your QWidget subclass. You need a
sub-class of QSqlRelationalTableModel.


More information about the PyQt mailing list