[PyQt] overriding QSqlRelationalTableModel's data method

Scott Frankel frankel at circlesfx.com
Sat Apr 3 01:05:15 BST 2010


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.)

I'm hoping to be able to adapt a QSqlRelationalTableModel object to  
display only specified item rows directly.  Using the view's  
setRowHidden() method is proving clunky.

Thanks in advance!
Scott



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





More information about the PyQt mailing list