[PyQt] overriding QSqlRelationalTableModel's data method

Scott Frankel frankel at circlesfx.com
Sat Apr 3 16:28:07 BST 2010

On Apr 2, 2010, at 5:24 PM, Phil Thompson wrote:

> On Fri, 2 Apr 2010 17:05:15 -0700, Scott Frankel <frankel at circlesfx.com 
> >
> wrote:
>> 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.

Thanks for the tip!  There must still be another reason for the  
model's data() method not being called.  Still doesn't work.  I hope  
it's not as obvious as the first!  (See revised model, attached.)

Thanks again!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: modelTest.py
Type: text/x-python-script
Size: 2117 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100403/3ca893e4/attachment.bin>
-------------- next part --------------

> Phil

More information about the PyQt mailing list