[PyQt] QTreeView: inserting and removing rows in view and
apaku at gmx.de
Fri Nov 9 10:40:40 GMT 2007
On 09.11.07 10:58:08, Dirk Wagener wrote:
> At this stage I am doing something wrong regarding this. Now and then
> (sporadically) I get access violations when getting the
> underlying data from a QModelIndex():
> tmpTreeNode = currentModelIndex.internalPointer()
To test to a certain extent that your model is working as model/view
contract says you can use the modeltest.py model. Its a port of the C++
version which was written by one of the Trolls to test models. It comes
with PyQt4 under contrib/pymodeltest.
You will be surrounded by luxury.
More information about the PyQt