[PyQt] QModelTest and QAbstractTableModel models...
Dirk Wagener
dwagen at stonethree.com
Tue Feb 19 09:47:50 GMT 2008
Hi
Can I use ModelTest to test custom implementations of QAbstractTableModel ?
If I use ModelTest as is, it breaks when it tries to access some of the QAbstractTableModel private
methods:
File "Y:\tests\modeltest.py", line 81, in nonDestructiveBasicTest
self.model.hasChildren(QtCore.QModelIndex())
AttributeError: QAbstractTableModel.hasChildren is a private method
How do I need to change ModelTest to ensure that it still tests the model/view design
contract?
Kind regards
Dirk
--
Dirk Wagener <dwagen at stonethree.com>
(MSc. Electronic Engineering, Stell.)
Project Engineer
Stone Three Signal Processing (Pty.) Ltd.
http://www.stonethree.com
+27 21 851 3123 (phone)
+27 21 851 3127 (fax)
The real trick in life is to want nothing, and to succeed in getting it. Shantaram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080219/b804449f/attachment.html
More information about the PyQt
mailing list